quot;Rory O'Connor" <[EMAIL PROTECTED]>; "perl" <[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 2:43 AM
Subject: Re: Global/local variable declaration
> On Jul 12, Connie Chan said:
>
> ># globalVars.pl
> >use strict;
> >sub
On Jul 12, Connie Chan said:
># globalVars.pl
>use strict;
>sub tellPath
>{ my ($request) = @_;
> my %GlobalVars;
>
>$GlobalVars{PathA} = '/usr/bin/perl/';
>$GlobalVars{PathB} = '/usr/home/';
>.
>
> if ($request) { return $GlobalVars{$request} }
>else { r
On Jul 11, Rory O'Connor said:
>I want to "use strict" in a script I'm writing. I have a separate
>config file I am using (require "config.pl";) with a bunch of global
>variables. But my script doesn't seem to want to recognize those
>variables unless they are actually declared in the body of t
.
How would the list say ?
Rgds,
Connie
- Original Message -
From: "Rory O'Connor" <[EMAIL PROTECTED]>
To: "perl" <[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 1:24 AM
Subject: Global/local variable declaration
> I want to "use strict"
I want to "use strict" in a script I'm writing. I have a separate
config file I am using (require "config.pl";) with a bunch of global
variables. But my script doesn't seem to want to recognize those
variables unless they are actually declared in the body of the script
itself.
I tried using "my