Regular Expression

2004-11-21 Thread Anish Kumar K.
Hi Suppose there is a line my $line= "[Create User]"; I wanted to get the text "Create User from this line..How will I use regular expresion to extract it... the condition is [TEXT NAME] I want only the text name from the pattern..I used $2 and all but no hope... Anish

Re: How to install "Mimi::Lite"

2004-11-21 Thread Stephen Liu
Hi Michael, Tks for your advice. Problem solve. As advised by Michael David the correct name should read; MIME:Lite It is case sensitive. B.R. Stephen --- Michael Glaesemann <[EMAIL PROTECTED]> wrote: > > On Nov 22, 2004, at 3:43 PM, Stephen Liu wrote: > > > Hi Michael, > > > > --- Micha

Re: How to install "Mimi::Lite"

2004-11-21 Thread Michael Glaesemann
On Nov 22, 2004, at 3:43 PM, Stephen Liu wrote: Hi Michael, --- Michael Glaesemann <[EMAIL PROTECTED]> wrote: # perldoc Mime::Lite No documentation found for "Mime::Lite". I think the module name might be case-sensitive. Tried follows without result; # perldoc mime:lite No documentation found for "

Re: How to install "Mimi::Lite"

2004-11-21 Thread Michael David
best bet when trying to install a package and your not sure is go to http://search.cpan.org look up mime or whatever package your looking for... in this case mime its simple easy and if you have a browser you can get to it. it will return a list of MIME packages or packages that match the criteri

Re: How to install "Mimi::Lite"

2004-11-21 Thread Stephen Liu
Hi Michael, --- Michael Glaesemann <[EMAIL PROTECTED]> wrote: > > # perldoc Mime::Lite > > No documentation found for "Mime::Lite". > > I think the module name might be case-sensitive. Tried follows without result; # perldoc mime:lite No documentation found for "mime:lite". # perldoc MIME:LIT

Re: How to install "Mimi::Lite"

2004-11-21 Thread Michael Glaesemann
On Nov 22, 2004, at 3:19 PM, Stephen Liu wrote: Hi folks, What will be the correct command to install "Mimi::Lite"? # perldoc Mime::Lite No documentation found for "Mime::Lite". I think the module name might be case-sensitive. hth Michael Glaesemann grzm myrealbox com -- To unsubscribe, e-mail: [EM

How to install "Mimi::Lite"

2004-11-21 Thread Stephen Liu
Hi folks, What will be the correct command to install "Mimi::Lite"? # perldoc Mime::Lite No documentation found for "Mime::Lite". # perl -MCPAN -e 'install Mime::Lite' CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Mon, 22 Nov 2004 02:49:31 GMT Warning: C

Re: Date calculations and daylight saving

2004-11-21 Thread Michael David
perl -MCPAN -e 'install Date::Calc' perl -MCPAN -e 'install Date::Parse' (you forgot your install command) OR type cpan from the prompt then the 2 install packages [prompt]$ cpan cpan> install Date::Calc cpan> install Date::Parse - Original Message - From: "Stephen Liu" <[EMAIL PROTECTED]

RE: Date calculations and daylight saving

2004-11-21 Thread Stephen Liu
Hi John, Please advise where can I find following modules Date::Calc date::parse I can't find them with # perl MCPAN -e 'Date::Calc' Can't open perl script "MCPAN": No such file or directory # perl -MCPAN -e 'Date::Calc' # perl -MCPAN -e 'date::parse' # perl MCPAN -e 'date::parse' Can't open pe

RE: Date calculations and daylight saving

2004-11-21 Thread John Bruin
> -Original Message- > From: Bob Showalter [mailto:[EMAIL PROTECTED] > Sent: 20 November 2004 02:35 > To: 'John Bruin'; 'Perl Beginners List' > Subject: RE: Date calculations and daylight saving > > John Bruin wrote: > > I have a script that calculates difference between dates > and i

RE: Recursive function

2004-11-21 Thread Eaton Elyahu Doron
Yes, thanks a lot, I know I can use the find.pm package. But, I wantted to learn what did I do wrong about my code. I'd be mostly thankful for you inputs, Eli. == Start of code #!/usr/bin/perl my (@dirs,$d,$depth) ; $depth = 2 ; @dirs = &find_dirs ($ARGV[0],$depth) ; print "\n\nOutput is ...