Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: need help to print some lines

by myelinviolin (Novice)
on Nov 28, 2012 at 19:12 UTC ( #1006093=note: print w/replies, xml ) Need Help??


in reply to need help to print some lines

Are you looking for something like this? You can always write a function to determine where the boundaries of the for statements should be.
$A[0][0]="a"; $A[1][0]="b"; $A[2][0]="c"; $A[3][0]="d"; $A[4][0]="e"; $A[0][1]="f"; $A[1][1]="g"; $A[2][1]="h"; $A[3][1]="i"; $A[4][1]="j"; for($col=0; $col<=1; $col++){ for($row=0; $row<=4; $row++){ print "$A[$row][$col]."; } }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006093]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2017-05-28 01:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?