in reply to Note on usage of ours variables and a question
The following is a very, very stupid idea, but it does work.
${^MYDEBUG} = 1;
Variables written like that (names starting with a "^" sign and in braces) are automatically global and available everywhere in your program, without needing to be declared.
Have fun!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Note on usage of ours variables and a question
by AnomalousMonk (Archbishop) on Nov 20, 2019 at 02:13 UTC | |
Re^2: Note on usage of ours variables and a question
by likbez (Sexton) on Nov 20, 2019 at 02:06 UTC | |
by AnomalousMonk (Archbishop) on Nov 20, 2019 at 02:24 UTC | |
by likbez (Sexton) on Nov 20, 2019 at 03:20 UTC |
In Section
Seekers of Perl Wisdom