Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: What way to weigh an AoA?

by GrandFather (Saint)
on May 17, 2006 at 00:35 UTC ( [id://549923]=note: print w/replies, xml ) Need Help??


in reply to What way to weigh an AoA?

Probably what you want is $#$users. The oA bit doesn't matter. It's the fact that you have a reference to the array that is giving you grief.

use strict; use warnings; my $users = [(0..7)]; print $#$users;

Prints:

7

DWIM is Perl's answer to Gödel

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://549923]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-03-28 18:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found