[Prev][Next][Index][Thread]

Re: [BUG? FEATURE!] Too late BEGIN



In article <MERLYN.95Apr9140115@linda.teleport.com>,
Randal L. Schwartz <merlyn@stonehenge.com> wrote:
> Compare:
> 
> 	perl -nwe 'BEGIN { shift }' first
> 
> with
> 
> 	perl -nwe 'BEGIN { shift(@ARGV) }' first
> 
> (which works).  BEGIN is really "sub BEGIN", and therefore the "shift"
> is shifting @_.  How's *that* for obscure?
> 
> (And you wonder why writing good documentation or training courses
> for Perl is so difficult? :-)
> 

Waw! And after this a person still needs humble lawyers to fight with
devil empire!

Ilya