Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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
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 perusing the Monastery: (2)
As of 2015-08-05 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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













    Results (76 votes), past polls