Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
"be consistent"
 
PerlMonks  

Re: Re: Re: TIMTOWTDI doesn't mean invent an outlandish approach (usually)

by antirice (Priest)
on Oct 18, 2003 at 08:47 UTC ( [id://300276]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Re: TIMTOWTDI doesn't mean invent an outlandish approach (usually)
in thread TIMTOWTDI doesn't mean invent an outlandish approach (usually)

...And I always use "$i <= @array" instead of "$i < $#array"...

I hope not since they don't mean the same thing unless $[ = 2. However, please realize that $#array is actually:

$#array = $[ - 1 + @array;

In other words, if anyone ever sets $[ to anything other than the default 0, not only do they then deserve to be beaten with a rubber mallet but they also break your code. Of course, I'm one of those weirdos who does stuff like:

my @acceptable = grep { check $array[$_] } ($[..$#array);

antirice    
The first rule of Perl club is - use Perl
The
ith rule of Perl club is - follow rule i - 1 for i > 1

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://300276]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.