in reply to Re: Global variables in Perl
in thread Global variables in Perl
Thanx monks! However, I had to include the 'our' or 'use var' statement (I believe the second one is deprecated now) so that Perl wouldn't croak a 'Global symbol "$DEBUG" requires explicit package name at...' error. If I remove 'use strict' AND the 'our'|'use var' statement I get the same 'Use of uninitialized value $DEBUG in print at...' message as before. Perhaps a bug with Exporter? I also tried Exporter-Lite without success...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Global variables in Perl
by ikegami (Patriarch) on Jun 03, 2010 at 19:10 UTC |