Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How to find size of array in array?

by jbert (Priest)
on Nov 19, 2001 at 19:35 UTC ( #126279=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      $asize = @a;
    
  2. or download this
      my $asize = scalar @a;
    
  3. or download this
    #!/usr/local/bin/perl -w
    use strict;
    ...
    print "Array size 1 is ", $asize, "\n";
    print "Array size 2 is ", @array, "\n";
    print "Array size 3 is ", scalar @array, "\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2020-06-04 02:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (30 votes). Check out past polls.

    Notices?