On Thu, Jul 19, 2001 at 05:28:05PM -0700, Sekhar, Ravi wrote:
> #!/usr/bin/perl -w
> use strict;
Good!
> $mypath = $ENV(PATH);
> $myeditor= $ENV{EDITOR};
> $mytest = 123;
> $mytest2 = "Perl"
add "my" at the beginning of the lines:
my $mypath = $ENV(PATH);
(Actually, I'd get rid of "my" from the variable names, but that's not
causing any errors.)
> print " Test Home : $mypath\n"
> print " Editor : $myeditor\n"
> print " mytest : $mytest\n"
> print " mytest2 : $mytest2\n
Is PATH really what you're after here?
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]