Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: dimensioning arrays

by Gloom (Monk)
on Feb 16, 2001 at 15:41 UTC ( #58837=note: print w/replies, xml ) Need Help??


in reply to dimensioning arrays

There's no fixed dimensions for perl's array : they are dynamicly extensible.
You can pre-allocate an amount of elements by playing with the $#array value ( see camel's book for more details ).

You can get the number of elements in an array by invoke it in a scalar context. exemple :
$count = @array; or $count = scalar @array;

Update

Too late ... there's already many responses more sharp ... So scuse me ( and my poor english :) and forget this node.

--------------------------------
Hope this helps

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2022-01-22 12:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (62 votes). Check out past polls.

    Notices?