in reply to Re^2: Global variables in Perl
in thread Global variables in Perl
Please stop making claims about the code that's been posted based on different code that wasn't posted.
If I use DEBUG, it croaks at the use of a bareword when strict 'subs' is in use.
I don't believe you, not if you import the symbol as shown in both your code and my code.
I tried &DEBUG but it looks for main::DEBUG.
You must not have imported the symbol as shown.
I'll probably just declare $DEBUG lexically in all scripts and modules and assign the function stored in ConfigThisJunk.pm to that variable
That's silly. Just use the function. Import it as shown if you don't want to use the full name.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Global variables in Perl
by taioba (Acolyte) on Jun 04, 2010 at 20:11 UTC | |
by ikegami (Patriarch) on Jun 04, 2010 at 20:18 UTC | |
by taioba (Acolyte) on Jun 04, 2010 at 21:46 UTC | |
by ikegami (Patriarch) on Jun 04, 2010 at 21:51 UTC | |
by taioba (Acolyte) on Jun 04, 2010 at 22:08 UTC | |
|