There's more than one way to do things | |
PerlMonks |
$_ as default printf arg failsby Neutron Jack (Pilgrim) |
on Mar 20, 2013 at 23:55 UTC ( [id://1024633]=perlquestion: print w/replies, xml ) | Need Help?? |
Neutron Jack has asked for the wisdom of the Perl Monks concerning the following question: When I run this code using Perl v5.14.2 on Ubuntu: I get: Missing argument in printf at ./p line 5. However, perldoc -f printf says that it should work: printf FILEHANDLE FORMAT, LISTprintf FILEHANDLE printf FORMAT, LIST printf ... If you omit the LIST, $_ is used;
Back to
Seekers of Perl Wisdom
|
|