--- "John W. Krahn" <[EMAIL PROTECTED]> wrote:
> $ perl -le'$[=5;
> @test = qw(one two three four five);
> $reftest = \@test;
> print $#$reftest + 1;
> print scalar @$reftest;
> '
> 10
> 5

Yes, but $[ is deprecated and therefore cheating.  You deserve what you get if you use 
it :)

Cheers,
Curtis "Ovid" Poe

=====
Senior Programmer
Onsite! Technology (http://www.onsitetech.com/)
"Ovid" on http://www.perlmonks.org/

__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to