Perl Monk, Perl Meditation | |
PerlMonks |
Re: Can you create *real* global variables?by moodster (Hermit) |
on Jan 25, 2002 at 19:01 UTC ( [id://141504]=note: print w/replies, xml ) | Need Help?? |
The only global variables that I know of are the one's created by perl, and they tend to be magical (e.g $! yields the current value of errno when in a numerical context, and an error message in a string context).I'm having a cold and my brain is only operating at half speed right now, so maybe I'm just confused. But I always thought that variables lived either in scalar or list context. Are there such beasts as numerical and string contexts as well?
Cheers,
In Section
Seekers of Perl Wisdom
|
|