We don't bite newbies here... much | |
PerlMonks |
Re (tilly) 1: Can you create *real* global variables?by tilly (Archbishop) |
on Jan 25, 2002 at 02:09 UTC ( [id://141344]=note: print w/replies, xml ) | Need Help?? |
There are 2 ways I have seen to do this. One, 5.6 and higher, is to start the name with a ^. Blame Dominus for this hack. The other one is to start the name with a '. In both cases the variable is always kept in package main. And both syntaxes will not be supported in Perl 6.
In Section
Seekers of Perl Wisdom
|
|