Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: How to avoid "Use of uninitialized value" with printf?

by Not_a_Number (Parson)
on Apr 05, 2012 at 06:49 UTC ( #963597=note: print w/ replies, xml ) Need Help??


in reply to How to avoid "Use of uninitialized value" with printf?

You could change your printf line to:

printf "%-12s " x @rows, @rows; print "\n";


Comment on Re: How to avoid "Use of uninitialized value" with printf?
Select or Download Code
Re^2: How to avoid "Use of uninitialized value" with printf?
by bobdabuilda (Sexton) on Apr 11, 2012 at 02:49 UTC

    Thanks for that! Looks much neater, I'll check it out.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2014-10-31 19:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (223 votes), past polls