From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ukhas
jean
Sent: 19 September 2006 14:51
To: Active Perl
Subject: how to chk $dbh is active or not ... also do v have a perl
helpfilein .chm format???

> 1. i have a $dbh DB-handle ... I wanted to check whether the handle is
still active or disconnected ... is 
> there something like $dbh->{active} ... ???

Assuming you mean a DBI database handle, then funnily enough it has
something almost exactly like that. Check out "ATTRIBUTES COMMON TO ALL
HANDLES" in 'perldoc DBI'. Also see the ping function in "Database
Handle Methods".

The DBI documentation is fairly large, but it is searchable. Also, if
you are going to use the DBI module in earnest, I would recommend
getting the book "Programming the Perl DBI".

>  
> 2. The documentation of perl is cumbersome in the .html format for
starters (unless u know where to find things > ... which takes a lot of
time for beginners) ... u see my team is new ... Does Activestate Perl
supply a .chm 
> help-file on its site??

They used to produce the documentation in that format, but it was
difficult (if not impossible?) to update when a module was installed or
upgraded, because to do so required proprietary software. Also, it is
kind of platform specific, and html isn't.

>  
> The reason i m asking for a .chm file is ... these files normally have
"Index" and "Search" tabs which really 
> helps even a new person.

Understandable if that is what you are used to, but Perl comes from a
different world. The majority of Perl documentation is in POD format,
which is converted to a fairly good html form by Activestate. Personally
I find a combination of that and the command line tool (perldoc) to give
me most of what I need. Some people, like $Bill (if you ask nicely he
may be tell you how) collect all of the documentation into a single file
which they find easier to search.

If you want to generate documentation in chm format yourself, it should
be possible. If my internet connection was working better I might be
able to give a pointer or two, but I would suggest starting at
http://search.cpan.org/.

HTH

-- 
Brian Raven 


=================================
Atos Euronext Market Solutions Disclaimer
=================================
The information contained in this e-mail is confidential and solely for the 
intended addressee(s). Unauthorised reproduction, disclosure, modification, 
and/or distribution of this email may be unlawful.
If you have received this email in error, please notify the sender immediately 
and delete it from your system. The views expressed in this message do not 
necessarily reflect those of Atos Euronext Market Solutions.

L'information contenue dans cet e-mail est confidentielle et uniquement 
destinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee. 
Toute copie, publication ou diffusion de cet email est interdite. Si cet e-mail 
vous parvient par erreur, nous vous prions de bien vouloir prevenir 
l'expediteur immediatement et d'effacer le e-mail et annexes jointes de votre 
systeme. Le contenu de ce message electronique ne represente pas necessairement 
la position ou le point de vue d'Atos Euronext Market Solutions.

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to