Initialize object permanently

2008-05-16 Thread anthony brooke
Hello, I am using Wordnet::QueryData which allow access to a very huge dictionary data. The initialization of object my $wn = WordNet::QueryData->new; took 2 wallclock secs ( 2.36 usr + 0.07 sys = 2.43 CPU) Then the subsequent request for the data is exetremely fast For the lines below too

Multiline comment in Perl

2008-05-16 Thread sivasakthi
Hi all, How to comment Multiple lines in Perl? Thanks, Siva

Re: Multiline comment in Perl

2008-05-16 Thread Beau E. Cox
On Thu, May 15, 2008 at 11:24 PM, sivasakthi <[EMAIL PROTECTED]> wrote: > Hi all, > > > How to comment Multiple lines in Perl? > > > > Thanks, > Siva > =comment like this example =cut Aloha => Beau; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: website

2008-05-16 Thread Dr.Ruud
Jerald Sheets schreef: > Dr.Ruud: >> Richard Lee: >>> [www.raycosoft.com/rayco/support/perl_tutor.html] >>> this is very helpful to me. I always have trouble w/ map and >>> grep(still do..) but this website is helpful >> >> It contains a lot of bad advice too. > > Look, someone asked for it by nam

Re: Multiline comment in Perl

2008-05-16 Thread Octavian Rasnita
Hi, Perl doesn't have a multiline comment mark. You can use perldoc marks in order to comment what you want, or include the content in a string, like: Perldoc style: =start Here are the lines you want to comment =cut Or using a string: q/ Here are the lines you want to comment /; The prog

Re: website

2008-05-16 Thread oryann9
On Thu, May 15, 2008 at 3:45 PM, Dr.Ruud <[EMAIL PROTECTED]> wrote: > It contains a lot of bad advice too. You have been helpful in the past so please be so kind to point out the *bad Advice*... Just saying it's bad really helps no one on a "beginners" list. The way I see it, people will read that

Re: Initialize object permanently

2008-05-16 Thread Chas. Owens
On May 16, 2008, at 04:55, anthony brooke wrote: Hello, I am using Wordnet::QueryData which allow access to a very huge dictionary data. The initialization of object my $wn = WordNet::QueryData->new; took 2 wallclock secs ( 2.36 usr + 0.07 sys = 2.43 CPU) Then the subsequent request for th

Re: Multiline comment in Perl

2008-05-16 Thread John W. Krahn
sivasakthi wrote: Hi all, Hello, How to comment Multiple lines in Perl? perldoc -q "How can I comment out a large block of perl code" John -- Perl isn't a toolbox, but a small machine shop where you can special-order certain sorts of tools at low cost and in short order.

Re: Initialize object permanently

2008-05-16 Thread Rob Dixon
anthony brooke wrote: > > Hello, I am using Wordnet::QueryData which allow access to a very huge > dictionary data. The initialization of object > my $wn = WordNet::QueryData->new; > > took > 2 wallclock secs ( 2.36 usr + 0.07 sys = 2.43 CPU) > > Then the subsequent request for the data is e

Re: Multiline comment in Perl

2008-05-16 Thread John W. Krahn
Beau E. Cox wrote: On Thu, May 15, 2008 at 11:24 PM, sivasakthi <[EMAIL PROTECTED]> wrote: How to comment Multiple lines in Perl? =comment like this example =cut $ echo " =comment like this example =cut " | podchecker *** ERROR: Unknown command 'comment' at line 3 in file <&STDIN does n

Re: Multiline comment in Perl

2008-05-16 Thread John W. Krahn
Octavian Rasnita wrote: - Original Message - From: "sivasakthi" <[EMAIL PROTECTED]> How to comment Multiple lines in Perl? Perl doesn't have a multiline comment mark. You can use perldoc marks in order to comment what you want, or include the content in a string, like: Perldoc s

Re: Initialize object permanently

2008-05-16 Thread anthony brooke
Thanks for the reply, it's a dynamic server side script that currently using CGI, but I am going for mod_perl. The interface is something like Google, so everytime the user make a request to lookup let's say the meaning of a word, the WordNet object have to be initialized. Is there a work around

Re: Initialize object permanently

2008-05-16 Thread Rob Dixon
anthony brooke wrote: > > Thanks for the reply, it's a dynamic server side script that currently > using CGI, but I am going for mod_perl. The interface is something like > Google, so everytime the user make a request to lookup let's say the > meaning of a word, the WordNet object have to be initia

Re: Initialize object permanently

2008-05-16 Thread Rob Dixon
anthony brooke wrote: > > Rob Dixon wrote: >> >> (I couldn't be bothered to reformat your post this time. Please bottom-post >> on this group. It's said several times a week.) > > (Sorry, I really don't know about that, could you tell why must it in > bottom ?) Because extended threads become ver

Re: Multiline comment in Perl

2008-05-16 Thread Octavian Rasnita
I know that =start is not a valid POD command, but it doesn't break the program. When I use it, I don't need to use it to add real POD docs, so the commands shouldn't be valid. =head1 NAME is too long... Octavian - Original Message - From: "John W. Krahn" <[EMAIL PROTECTED]> To: "Pe

Re: Multiline comment in Perl

2008-05-16 Thread Rob Dixon
Octavian Rasnita wrote: > > From: "John W. Krahn" <[EMAIL PROTECTED]> > >> Octavian Rasnita wrote: >> >>> - Original Message - From: "sivasakthi" <[EMAIL PROTECTED]> >>> How to comment Multiple lines in Perl? >>> >>> Perl doesn't have a multiline comment mark. >>> >>> You can use pe

Re: Multiline comment in Perl

2008-05-16 Thread Octavian Rasnita
From: "Rob Dixon" <[EMAIL PROTECTED]> (Once again, please bottom-post replies to this group. It maintains readability for extended threads. Salutations and signatures should always be edited out. You are responsible for the whole of your post, not just your own material.) Maybe it improves th