Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Counting elements in array

by simmisam (Novice)
on Jan 29, 2014 at 20:42 UTC ( #1072582=note: print w/replies, xml ) Need Help??


in reply to Counting elements in array

This might be the most easiest question in perl. You can get array size by any of the following

my $size = @array; print $size;

or

print scalar @array;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1072582]
help
Chatterbox?
[choroba]: Also, a thread here on PM mentioned that one of perlmonks.com or www.perlmonks.com should now work
[choroba]: Tidings
[Tanktalus]: So, I can log in, I can update last hour of cb, I can read the cb, I just can't post a message to it :(
[Tanktalus]: it's all the same process, and, IIRC, the same mechanized object.
[Tanktalus]: hmm, no, the mech object for posting isn't the same as reading, but it's the same as the logging in one.

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2018-07-15 21:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (326 votes). Check out past polls.

    Notices?