[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] That was productive...



* Jeff Pinyan (jeffp@crusoe.net) [000118 11:54]:
> 
> Sometimes, I use something like:
> 
>   for ($i = 0; local $_ = $array[$i], $i < @array; $i++) {
>     ...
>   }

I'm not sure, but I think that may trigger the array
extension mechanism, since sometimes you're accessing
$array[ $#array + 1 ].  I do

    for ($i = 0; $i <= $#array; $i++) {
        local $_ = $array[$i];
        ...
    }

-- 
John Porter


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe