in reply to ARGV as a sub name?
B::Deparse reveals all:
$ perl -MO=Deparse package foo; sub ARGV { print "in foo::ARGV\n" } package main; foo->ARGV; package foo; sub main::ARGV { print "in foo::ARGV\n"; } package main; 'foo'->ARGV; - syntax OK
I haven't yet found the part of the parser which forces sub ARGV into main::.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: ARGV as a sub name?
by james2vegas (Chaplain) on Aug 18, 2010 at 21:37 UTC |