Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^3: Data::Dumper and printf

by LanX (Canon)
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

Comment on Re^3: Data::Dumper and printf
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004961]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2015-07-30 13:14 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (271 votes), past polls