Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^3: filling in the zeros...please help

by jaredor (Priest)
on May 16, 2012 at 06:12 UTC ( #970749=note: print w/replies, xml ) Need Help??

in reply to Re^2: filling in the zeros...please help
in thread filling in the zeros...please help


You have a hash of arrays; each array is the same length; each array represents a column; the hash key for an array is the number of the column (starting at zero) that it represents. Because of this nice regularity, you can use a for loop like above and print out each row (starting from 0) with a simple print statement. (Actually, it would be even simpler to have an array of arrays, but not that much simpler for it to be worthwhile for me to go back and edit code from my mobile device.)

And since I'm not using a "real" keyboard at the moment, I'm not going to write out any lines of code. However, I probably shouldn't: You need to have the perl skills to do this relatively simple task. If you can't do this, then you probably don't understand what the above code is doing. You need to understand that first.

  • Comment on Re^3: filling in the zeros...please help

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2021-01-25 18:00 GMT
Find Nodes?
    Voting Booth?