"be consistent" | |
PerlMonks |
Re: Using the DATA file handle for ARGVby Grimy (Pilgrim) |
on Jun 01, 2013 at 02:21 UTC ( [id://1036366]=note: print w/replies, xml ) | Need Help?? |
This snippet is really interesting and could prove useful later, thanks for sharing (: There's something I find strange. Typeglob aliasing usually transfers all magic. Try this: *a = *\; $a = 42; print; # prints 42However, in this case, it looks like @ARGV and $ARGV are stripped of all magic by the manipulation (@DATA and $DATA ain't getting any magic neither). Can somebody explain what's happening there?
In Section
Meditations
|
|