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::.
In reply to Re: ARGV as a sub name?
by chromatic
in thread ARGV as a sub name?
by perl5ever
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |