Do you know where your variables are? | |
PerlMonks |
Re^3: Data::Dumper and printfby LanX (Saint) |
on Nov 21, 2012 at 17:05 UTC ( [id://1004961]=note: print w/replies, xml ) | Need Help?? |
one confusing thing is that printf and sprintf have different prototypes!
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
|
|