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
In reply to Re: Note on usage of ours variables and a question
by LanX
in thread Note on usage of ours variables and a question
by likbez
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |