Re: Global/local variable declaration

2002-07-11 Thread Connie Chan
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

Re: Global/local variable declaration

2002-07-11 Thread Jeff 'japhy' Pinyan
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

Re: Global/local variable declaration

2002-07-11 Thread Jeff 'japhy' Pinyan
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

Re: Global/local variable declaration

2002-07-11 Thread Connie Chan
. 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"

Global/local variable declaration

2002-07-11 Thread Rory O'Connor
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