http://www.perlmonks.org?node_id=1004961


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