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.