http://qs321.pair.com?node_id=11108918


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!