[Prev][Next][Index][Thread]
Re: [BUG? FEATURE!] Too late BEGIN
-
Subject: Re: [BUG? FEATURE!] Too late BEGIN
-
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
-
Date: 9 Apr 1995 18:40:07 -0400
-
Apparently-To: merlyn@teleport.com
-
From merlyn@teleport.com Tue Apr 11 16: 23:24 1995
-
Newsgroups: comp.lang.perl
-
Organization: Department of Mathematics, The Ohio State University
-
References: <3m99kd$qsb@monk.mps.ohio-state.edu> <MERLYN.95Apr9140115@linda.teleport.com>
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