Re: Dynamic replacement of the variable

2011-04-17 Thread Uri Guttman
> "SF" == Shlomi Fish writes: SF> Hi Uri, SF> thanks for all your input on this list. See below for my response. SF> On Monday 18 Apr 2011 07:56:16 Uri Guttman wrote: >> > "mr" == marcos rebelo writes: mr> Ugly but may work, with a simple eval mr> use strict; mr> use warni

Re: Dynamic replacement of the variable

2011-04-17 Thread Shlomi Fish
Hi Uri, thanks for all your input on this list. See below for my response. On Monday 18 Apr 2011 07:56:16 Uri Guttman wrote: > > "mr" == marcos rebelo writes: > mr> Ugly but may work, with a simple eval > mr> use strict; > mr> use warnings; > > mr> my $var = '$str. q( abc_xyz)'; >

Re: Dynamic replacement of the variable

2011-04-17 Thread Uri Guttman
> "mr" == marcos rebelo writes: mr> Ugly but may work, with a simple eval mr> use strict; mr> use warnings; mr> my $var = '$str. q( abc_xyz)'; mr> my $str; mr> for(my $i=1;$i <= 5; $i++){ mr>$str = $i; mr>my $line = 'Line: '.eval $var; mr>print "$line\n"; mr>

Re: Dynamic replacement of the variable

2011-04-17 Thread marcos rebelo
Ugly but may work, with a simple eval use strict; use warnings; my $var = '$str. q( abc_xyz)'; my $str; for(my $i=1;$i <= 5; $i++){ $str = $i; my $line = 'Line: '.eval $var; print "$line\n"; } Best Regards Marcos On Sun, Apr 17, 2011 at 20:23, Shlomi Fish wrote: > Hi Parag, > > On Su

Re: WMI

2011-04-17 Thread Mike Flannigan
On 4/17/2011 12:22 PM, beginners-digest-h...@perl.org wrote: Based on http://support.microsoft.com/kb/320046 and http://support.microsoft.com/kb/320047 Looks like it was park of win2k resource kit John Thanks to all who responded to my WMI module query. Mike

Re: Dynamic replacement of the variable

2011-04-17 Thread Uri Guttman
> "RD" == Rob Dixon writes: RD> use strict; RD> use warnings; RD> my $str; RD> sub var { "$str abc_xyz" } RD> for my $i (1 .. 5) { RD> $str = $i; RD> my $line = 'Line: ' . var; RD> print "$line\n"; RD> } using a global to get around symrefs is not a win. a template

Re: Dynamic replacement of the variable

2011-04-17 Thread Rob Dixon
On 17/04/2011 19:07, Parag Kalra wrote: Hi, I am not sure if this can be done. But just asking it out of curiosity. I have written this snippet. use strict; use warnings; my $var = '$str abc_xyz'; my $str; for(my $i=1;$i<= 5; $i++){ $str = $i; my $line = 'Line: '.$var; print "$

Re: Dynamic replacement of the variable

2011-04-17 Thread Shlomi Fish
Hi Parag, On Sunday 17 Apr 2011 21:07:27 Parag Kalra wrote: > Hi, > > I am not sure if this can be done. But just asking it out of curiosity. I > have written this snippet. > > use strict; > use warnings; > > my $var = '$str abc_xyz'; > my $str; > > for(my $i=1;$i <= 5; $i++){ > $str = $i;

Dynamic replacement of the variable

2011-04-17 Thread Parag Kalra
Hi, I am not sure if this can be done. But just asking it out of curiosity. I have written this snippet. use strict; use warnings; my $var = '$str abc_xyz'; my $str; for(my $i=1;$i <= 5; $i++){ $str = $i; my $line = 'Line: '.$var; print "$line\n"; } Currently it displays: Line: $s

Re: move array elements to hash

2011-04-17 Thread Jim Gibson
At 12:29 PM -0700 4/14/11, mark baumeister wrote: Hi, I am trying to move array elements (populated from the ) into a hash as pairs [i] and [i + 1] and then print them out using the code below. If I enter "bob" as the first element and hit enter I get the error messages below. I guess there are m

Re: help in scripting

2011-04-17 Thread Shawn H Corey
On 11-04-16 08:30 PM, Uri Guttman wrote: "tx" == tianjun xu writes: tx> my %hash=(); no need to initialize that to (). There is always the need. Not that long ago, mod_perl use to use the same memory as the previous run but it did not zero the memory. You got what every was in there

Re: Pdf to Excel

2011-04-17 Thread shawn wilson
On Sat, Apr 16, 2011 at 10:33 AM, muthukumar swamy wrote: > I am trying to convert the tables in pdf to Excel. I am using CAM::Pdf > module for reading the text from Pdf. please suggest me anyone for > other way for converting PDF to Excel. > you're going to have to try real hard to make it accur

Re: Auto-numbering in perlpod

2011-04-17 Thread Shlomi Fish
Hi Parag, On Sunday 17 Apr 2011 09:07:13 Parag Kalra wrote: > Hi, > > While creating POD for modules in Perl, I often specify numbered list > > 1. Parameter1 > 2. Parameter2 > 3. Parameter3 > .. > ... > etc > > or > > 1. It does this > 2. It also does that > 3. But it won't do this > ... > ..

Re: help in scripting

2011-04-17 Thread Shlomi Fish
Hi John, thanks for your E-mail. See below for my response. On Sunday 17 Apr 2011 04:17:32 John W. Krahn wrote: > Shlomi Fish wrote: > > On Saturday 16 Apr 2011 09:06:02 Gurunath Katagi wrote: > >> hi .. i am new to perl .. > >> i have a input file something pasted as below .. > >> > >> 16 50 >