Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Finding the length of an array of arrays

by KM (Priest)
on Aug 17, 2000 at 23:40 UTC ( [id://28361]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
    my @array = (@a, @b, @c);
    my $size = @array;
    # $size will be 10
    
  2. or download this
    #!/usr/bin/perl -w
    
    ...
            $i += @$_;
    }
    # $i will be 10, scalar @array will be 3
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 19:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found