Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Getting table dimensions

by aukjan (Friar)
on Jun 20, 2005 at 13:39 UTC ( [id://468341]=note: print w/replies, xml ) Need Help??


in reply to Getting table dimensions

if you want a loop through all the variables of an array you can do:
@array = qw( 1 2 3 4 5 6); for $array_element ( @array ){ print "This is the element: $array_element\n"; }
or if you want to use the index:
@array = qw( a b c d e f); for $i ( 0 .. $#array ){ print "This is the $i th element: ". $array[$i] ."\n"; }
Is this what you are looking for?

.:| If it can't be fixed .. Don't break it |:.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://468341]
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 23:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found