in reply to Note on usage of ours variables and a question
TIMTOWTDI
The following makes the variable $Debug::DEBUG available as $DEBUG for the rest of the file
use strict; use warnings; package Debug; our $DEBUG; package MyPkg; print $DEBUG if $DEBUG;
but I'd rather use a constant.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
|
|---|