in reply to Can you create *real* global variables?
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.
|Replies are listed 'Best First'.|
Re: Re (tilly) 1: Can you create *real* global variables?
by japhy (Canon) on Jan 25, 2002 at 02:45 UTC
by tilly (Archbishop) on Jan 25, 2002 at 03:15 UTC