Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: printf matrix

by Ratazong (Prior)
on Jan 06, 2014 at 13:42 UTC ( #1069511=note: print w/ replies, xml ) Need Help??

in reply to printf matrix


I think the biggest problem in your solution is that all values are printed in one line. Instead you should start each $key in a new line. That way it would look more like a matrix, and you could improve the rest of your output.

The easiest way to solve this would be to change your third line to

print "\n$key ";
HTH, Rata

Comment on Re: printf matrix
Select or Download Code

Log In?

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

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 2015-08-30 21:14 GMT
Find Nodes?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...

    Results (351 votes), past polls