Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^2: Using the DATA file handle for ARGV

by ikegami (Pope)
on Nov 13, 2013 at 18:22 UTC ( #1062425=note: print w/replies, xml ) Need Help??

in reply to Re: Using the DATA file handle for ARGV
in thread Using the DATA file handle for ARGV

it looks like @ARGV and $ARGV are stripped of all magic by the manipulation

No, they were never magical in the first place.

>perl -MDevel::Peek -e"Dump($ARGV,1);" 2>&1 | find "MAGIC" >perl -MDevel::Peek -e"Dump(\@ARGV,1);" 2>&1 | find "MAGIC" >perl -MDevel::Peek -e"Dump(\%ENV,1);" 2>&1 | find "MAGIC" MAGIC = 0x4c7ed8 MG_TYPE = PERL_MAGIC_env(E)

They are simply set by reading from the magical file handle ARGV, which is no longer being read from.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1062425]
Discipulus ruling monthly best.. oh tempora oh mores..

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2017-11-24 17:48 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (351 votes). Check out past polls.