No such thing as a small change | |
PerlMonks |
Global symbol .... requires explicit package name atby ZETZ (Initiate) |
on Oct 19, 2009 at 17:48 UTC ( [id://802052]=perlquestion: print w/replies, xml ) | Need Help?? |
ZETZ has asked for the wisdom of the Perl Monks concerning the following question: UPDATE: SOLUTION PROVIDED I have a written a working Perl script (my first one). The interpreter complains when I turn on 'use strict'. I get the following error message: "Global symbol $files requires explicit package name at...line 19...line 20...line 24". My code:
The only thing I can think of and only thing my research indicates is that I need to use a lexical variable. But I'm doing that already. UPDATE: Thank you both for you help.
Back to
Seekers of Perl Wisdom
|
|