Don't ask to ask, just ask | |
PerlMonks |
Re: Hacking perlby shmem (Chancellor) |
on Jan 15, 2007 at 11:42 UTC ( [id://594732]=note: print w/replies, xml ) | Need Help?? |
Definitely a nice hack, robin++ ... but it leaves a question open. Consider: local *foo:
my *foo:
Hmm. The lexical glob is created ok, but other than with local, glob corresponding variables aren't treated as aliases to the typeglob entries in the current scope. Now, should that happen? I think, it should; but such lookup should also warn about "masking an earlier @foo in the same scope". What do you think? --shmem _($_=" "x(1<<5)."?\n".q·/)Oo. G°\ / /\_¯/(q / ---------------------------- \__(m.====·.(_("always off the crowd"))."· ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In Section
Meditations
|
|