Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 (Beadle) 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 having an uproarious good time at the Monastery: (18)
As of 2015-07-07 14:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (90 votes), past polls