In a message dated 3/2/2004 9:21:57 AM Eastern Standard Time, 
[EMAIL PROTECTED] writes:
>$#array + 1 still is the size of the array and it won't modify the 
>array.  That's not what we were talking about.  We were talking about 
>++$#array, which expands to $#array = $#array + 1.  Note the equal sign 
>there, because it's what modifies the array.

$#array + 1 is the length99% of the time. Until you modify $[, in which case 
the size is $#array - $[ + 1. But, don't modify $[ (unless you want to :-) )

-will
(the above message is double rot13 encoded for security reasons)

Most Useful Perl Modules
-strict
-warnings
-Devel::DProf
-Benchmark
-B::Deparse
-Data::Dumper
-Clone (a Godsend)
-Perl::Tidy
-Beautifier

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to