Re: How to get the values

2007-06-20 Thread Rob Dixon
Nath, Alok (STSD) wrote: Hi, I have a file from which I have to pick a line like this and get the values of Par, Default and RootOnly. Par=som Default=yes RootOnly=no Shared=force I am trying something like below.But the code is becoming long. Anything

RE: How to get the values

2007-06-20 Thread Nath, Alok (STSD)
Thanks .It serves the purpose. -Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 20, 2007 12:42 PM To: beginners@perl.org Cc: Nath, Alok (STSD) Subject: Re: How to get the values Nath, Alok (STSD) wrote: Hi, I have a file from which I have

Re: how to get version values from other code?

2002-04-05 Thread drieux
On Friday, April 5, 2002, at 06:57 , Elaine -HFB- Ashton wrote: [..] use ExtUtils::Installed; my $instmod = ExtUtils::Installed-new(); foreach my $module ($instmod-modules()) { my $version = $instmod-version($module) || ???; print $module -- $version\n; } [..] Ok - that is cool for

Re: how to get version values from other code?

2002-04-05 Thread Elaine -HFB- Ashton
drieux [[EMAIL PROTECTED]] quoth: * *My real concern is grovelling through old grot to figure out *like what it Thinks It is dependent upon. * *This way folks could self grovel their code and be able to *provide their basic 'my code needs' foo info when presenting *questions about the code

Re: how to get hash values returned from a subroutine?

2002-01-28 Thread Deen Hameed
On Mon, 28 Jan 2002, Martin A. Hansen wrote: $extract = qw (en tre ni); # foreach $number (qw en tre ni) { foreach $number ($extract) { ummm... shouldn't this be forwach $number (@extract) { ? ^ note the @ you're calling the for loop with a

Re: how to get hash values returned from a subroutine?

2002-01-28 Thread John W. Krahn
Martin A. Hansen wrote: hi there Hello, im trying to call a subroutine and get it to return some hash table values. however, i have two problems. 1. it does not work. theres something wrong with my foreach sentence, but i cant see what it is. however, the commented foreach