Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Data::Dumper and printf

by LanX (Bishop)
on Nov 21, 2012 at 17:05 UTC ( #1004961=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004961]
help
Chatterbox?
[choroba]: that's from the last year, right?
[choroba]: Pretty similar to his talk at YAPC::EU 2016

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2017-09-19 18:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (226 votes). Check out past polls.

    Notices?