http://www.perlmonks.org?node_id=1036366


in reply to Using the DATA file handle for ARGV

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 42

However, 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?