Correct me if I am wrong since I'm just a newbie..
> > $mypath = $ENV(PATH);
> > $myeditor= $ENV{EDITOR};
> > $mytest = 123;
> > $mytest2 = "Perl"
^ Doesn't this require a semicolon?
>
> add "my" at the beginning of the lines:
>
> my $mypath = $ENV(PATH);
On Fri, Jul 20, 2001 at 02:39:04AM +0200, Paul Johnson wrote:
> On Thu, Jul 19, 2001 at 05:28:05PM -0700, Sekhar, Ravi wrote:
> > $mypath = $ENV(PATH);
> my $mypath = $ENV(PATH);
I should read more carefully. You need braces here instead of
parentheses.
my $mypath = $ENV{PATH};
(Or mayb
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"
Hi all,
I am trying to do two basic things in my PERL
script:
1) Read in the values of two environment variables
2) Print the values of scalars and environment
variables
I do not understand the errors that were generated
when I compiled the following script. Any help in
understanding what I ma