in reply to Re^2: Data::Dumper and printf
in thread Data::Dumper and printf
one confusing thing is that printf and sprintf have different prototypes!
DB<108> prototype "CORE::sprintf" => "\$\@" DB<109> prototype "CORE::printf" => undef
so sprintf @array will evaluate the array in scalar context, such that now the number of elements will be interpreted as format string...
Cheers Rolf
|
---|
In Section
Seekers of Perl Wisdom