Sun751 has asked for the wisdom of the Perl Monks concerning the following question:

use strict; use warnings; my $line = "Appal"; printf "%8s$line\n";
In above code I am getting following error, Use of uninitialized value in printf Any suggestion? Please,
Oh! got it guys its printf format, should be
printf "%8s\n",$line;

Replies are listed 'Best First'.
Re: printf uninitialized value
by bluestar (Novice) on Aug 28, 2009 at 10:07 UTC
    use strict; use warnings; my $line = "Appal"; printf("%8s\n", $line);
Re: printf uninitialized value
by Anonymous Monk on Aug 28, 2009 at 04:13 UTC
    perldoc -f printf