ep has asked for the wisdom of the Perl Monks concerning the following question:
use strict; # set some path variables. $msagdir = '/stlouis4/msag'; $tempdir = $msagdir . '/tempfiles'; $datadir = $msagdir . '/data/SAG_MSAG/';
I receive the following errors...
Global symbol "$msagdir" requires explicit package name at parse_zip.p +l line 16. Global symbol "$tempdir" requires explicit package name at parse_zip.p +l line 17. Global symbol "$datadir" requires explicit package name at parse_zip.p +l line 18.
Where have I gone wrong and what is the diff. between a global and local variable in a script?
Thanks-
ep
Edit 2001-05-08 by tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Global vs. Local
by azatoth (Curate) on Mar 08, 2001 at 23:43 UTC | |
by davorg (Chancellor) on Mar 09, 2001 at 14:11 UTC | |
|
Re: Global vs. Local
by arturo (Vicar) on Mar 08, 2001 at 23:51 UTC |