[Pdx-pm] evil @ARGV syntax
Michael G Schwern
schwern at pobox.com
Tue Jul 19 17:22:52 PDT 2005
On Tue, Jul 19, 2005 at 01:45:35PM -0700, Austin Schutz wrote:
> > Lots of poorly written Perl books (which is to say most of them prior to
> > 2000) never clearly teach $num_things = @things.
PLEASE READ THE ABOVE BEFORE COMMENTING ON THE BELOW! If you don't know about
"$num = @array" then "$num = $#array + 1" makes sense.
> > Adding one to $#ARGV is to make the operation more like how people think.
>
> I have to wonder what sort of people you've been associating with
> that think this way. :-)
<trash>
--
Michael G Schwern schwern at pobox.com http://www.pobox.com/~schwern
You are wicked and wrong to have broken inside and peeked at the
implementation and then relied upon it.
-- tchrist in <31832.969261130 at chthon>
More information about the Pdx-pm-list
mailing list