Re: Problem with adding a connection with Win32::NetResource

2007-12-28 Thread Nash
Ooops, accidentaly left the # characters in RemoteShare definition... Disregard them. :) Nash -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: configuring startperl during make ?

2007-12-28 Thread Tom Phoenix
On Dec 28, 2007 12:39 AM, Mayuresh Nirhali <[EMAIL PROTECTED]> wrote: > During DBI building, MakeMaker uses the fixin() method to write the shebang > line for all the perl scripts that will be installed. > The path on my machine is /usr/perl/5.8.4/bin/perl. I also have > /usr/perl5/bin/perl which

Re: converting text expressions (like "1+1") to values

2007-12-28 Thread Chas. Owens
On Dec 28, 2007 10:15 AM, Adarsh Srivastava <[EMAIL PROTECTED]> wrote: > Hello, > > Is there any inbuilt/external function or library that can convert a text > expression (eg. "22 + 23") and evaluate the resulting value?( 45 in this > case). snip Well, the string form of eval will do this; however

Re: how to accept array elments using loop

2007-12-28 Thread Chas. Owens
On Dec 28, 2007 6:42 AM, <[EMAIL PROTECTED]> wrote: > Hi all, >I am new user of this group. can you tell how can i accept > array elements using loop. for example > for($i=0;$i<5;$i++) > { > $a[$i]=; > } While this does appear to be valid syntax (except that it is STDIN not stdin),

Re: how to accept array elments using loop

2007-12-28 Thread John W. Krahn
[EMAIL PROTECTED] wrote: Hi all, Hello, I am new user of this group. can you tell how can i accept array elements using loop. for example for($i=0;$i<5;$i++) { $a[$i]=; } my @a = map scalar , 1 .. 5; John -- Perl isn't a toolbox, but a small machine shop where you can specia

Re: Problem with adding a connection with Win32::NetResource

2007-12-28 Thread Chas. Owens
On Dec 28, 2007 9:45 AM, Nash <[EMAIL PROTECTED]> wrote: > On Dec 28, 5:55am, [EMAIL PROTECTED] (Chas. Owens) wrote: > > > You are not using the strict pragma (this doesn't effect your current > > problem, but it is still a bad idea). > > Like I said, I'm new to Perl. By "pragma" I guess you mean s

Re: converting text expressions (like "1+1") to values

2007-12-28 Thread yitzle
With minor text modifications, you ought to be able to pull it off easily with the built in "eval" http://perldoc.perl.org/functions/eval.html Note: please don't post disclaimers to this list.

Re: Problem with adding a connection with Win32::NetResource

2007-12-28 Thread Nash
On Dec 28, 5:55 am, [EMAIL PROTECTED] (Chas. Owens) wrote: > You are not using the strict pragma (this doesn't effect your current > problem, but it is still a bad idea). Like I said, I'm new to Perl. By "pragma" I guess you mean syntax? > It also looks (based on the answer to your second questi

converting text expressions (like "1+1") to values

2007-12-28 Thread Adarsh Srivastava
Hello, Is there any inbuilt/external function or library that can convert a text expression (eg. "22 + 23") and evaluate the resulting value?( 45 in this case). I need to extract similar text expressions from a file and convert them to single values, but since this is supposed to be only a sma

Re: how to accept array elments using loop

2007-12-28 Thread Paul Lalli
On Dec 28, 6:42 am, [EMAIL PROTECTED] wrote: >            I am new user of this group. can you tell how can i accept > array elements using loop. for example > for($i=0;$i<5;$i++) > { >   $a[$i]=; > } What, exactly, is wrong with the solution you provided right there? How does it not meet your ne

RE: [EMAIL PROTECTED]

2007-12-28 Thread Peter Scott
On Thu, 27 Dec 2007 10:46:42 -0500, Clifton Lee wrote: > The output from the system command may be better stored in a scalar and then > split into an array (separated by return line characters). Then you can use > the 'foreach' operator for each element in your array. That makes no sense. Perl w

Re: how to accept array elments using loop

2007-12-28 Thread Jeff Pang
On Dec 28, 2007 7:42 PM, <[EMAIL PROTECTED]> wrote: > Hi all, >I am new user of this group. can you tell how can i accept > array elements using loop. for example > for($i=0;$i<5;$i++) > { > $a[$i]=; > } > use strict; my @arr; while(<>) { chomp; push @arr,$_; } -- To uns

how to accept array elments using loop

2007-12-28 Thread lumadhu
Hi all, I am new user of this group. can you tell how can i accept array elements using loop. for example for($i=0;$i<5;$i++) { $a[$i]=; } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

configuring startperl during make ?

2007-12-28 Thread Mayuresh Nirhali
Hello, During DBI building, MakeMaker uses the fixin() method to write the shebang line for all the perl scripts that will be installed. The path on my machine is /usr/perl/5.8.4/bin/perl. I also have /usr/perl5/bin/perl which is *currently* pointing to the same 5.8.4 perl, but this generic versio

Re: Env variables readable by an application

2007-12-28 Thread Travis Thornhill
"Chas. Owens" <[EMAIL PROTECTED]> wrote: No, environmental variables are a per-process thing. Child processes inherit the state of their parent's environment, but that is it. If you need inter-process communication you have to use IPC*, a file, a database, or some other external resource. Take