Re: How to emulate this set or how to assign the result of running system "command" to a variable

2006-08-13 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > > Hi John, Hello, > Thanks as usual ... what is UUOC? http://www.justfuckinggoogleit.com/search?query=UUOC > Am getting more intrigue and confused with your short-cuts coding > but it is fun though ... > > These two lines here, are you creating a hash? No.

Re: How to emulate this set or how to assign the result of running system "command" to a variable

2006-08-13 Thread Ken Foskey
On Mon, 2006-08-14 at 09:13 +1200, [EMAIL PROTECTED] wrote: > have num_of_developers=`cat /etc/passwd | grep developer | wc -l` which gives > the number of developer logins. So how do I get it to do the same in Perl? I untested... you get to debug it. use strict; my $passwd; my $line; my $num_

Re: How to emulate this set or how to assign the result of running system "command" to a variable

2006-08-13 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > Hi John, Hello, > Thanks for your prompt response as usual ... > > Not exactly need File::Spec and File::Basename per se, I really need to > grab some of the environment variables that are set when the Perl script > is run or in the case of the .BAT file, when the batc

Re: How to emulate this set or how to assign the result of running system "command" to a variable

2006-08-13 Thread benbart
Hi John, Thanks for your prompt response as usual ... Not exactly need File::Spec and File::Basename per se, I really need to grab some of the environment variables that are set when the Perl script is run or in the case of the .BAT file, when the batch file is run. For example, I want to know w

Re: How to emulate this set or how to assign the result of running system "command" to a variable

2006-08-13 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > Hi all, Hello, > I currently have a MS-DOS batch file that am trying to convert to a Perl > script. > I have something like this in the .BAT file where variables are "set" based on > some parsing of a variable passed as a command line argument whenever the .BAT > file

How to emulate this set or how to assign the result of running system "command" to a variable

2006-08-13 Thread benbart
Hi all, I currently have a MS-DOS batch file that am trying to convert to a Perl script. I have something like this in the .BAT file where variables are "set" based on some parsing of a variable passed as a command line argument whenever the .BAT file is executed by the application. The command l