Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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";

Replies are listed 'Best First'.
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 about the Monastery: (2)
As of 2016-07-26 04:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (231 votes). Check out past polls.