Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2016-06-28 17:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (360 votes). Check out past polls.