in reply to Re: Re: $_ haters anonymou
in thread $_ haters anonymou
> There is a small list of "special" symbols which are
> always in package main by default no matter what package you are in.
> *_ is one.
I thought that might be a useful thing to have, so I put a patch into 5.6.0 to add lots of those variables. So now if you want to have a variable that is always in package main for some reason, you can call it ${^_Ben_Tillys_Variable}, and no matter what package you are in, you always get the same thing.
It's documented at the very end of perlvar, as is the stuff Ben was discussing.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: $_ haters anonymou
by redcloud (Parson) on Dec 14, 2000 at 20:22 UTC | |
by Dominus (Parson) on Dec 14, 2000 at 22:27 UTC | |
by cLive ;-) (Prior) on Jan 25, 2002 at 04:16 UTC | |
by Dominus (Parson) on Jan 25, 2002 at 19:05 UTC |