in reply to Re^2: Using the DATA file handle for ARGV
in thread Using the DATA file handle for ARGV
@ARGV = 'echo 42 |'; print <>; # prints 42 print $ARGV; # prints echo 42|
Unless I'm mistaken, this illustrates that both @ARGV and $ARGV are usually magic.
But I thing I got it. There's isn't actually any magic in @ARGV and $ARGV. It's just the magic *ARGV{IO} that pops @ARGV and writes $ARGV. Once the magic *ARGV{IO} is gone, those variables are nothing special. Or am I still completely mistaken?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Using the DATA file handle for ARGV
by Anonymous Monk on Jun 02, 2013 at 00:43 UTC |