Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^2: Array of Hashes

by GrandFather (Sage)
on Feb 07, 2019 at 19:42 UTC ( #1229562=note: print w/replies, xml ) Need Help??

in reply to Re: Array of Hashes
in thread Array of Hashes

Why print sprintf ... instead of printf ...?

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

Replies are listed 'Best First'.
Re^3: Array of Hashes
by 1nickt (Abbot) on Feb 08, 2019 at 02:28 UTC

    Hi Grandfather, because I would use

    but didn't want to introduce that change in my comment.

    And because usually I am doing

    $log->debug(sprintf 'format', @values)
    or even
    $msg = sprintf 'format', @values; $DEBUG && say $msg && $log->debug($msg);

    Basically, I've never used printf alone in the last 20 years, because it does not meet my needs.

    The way forward always starts with a minimal test.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2020-09-21 16:13 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (126 votes). Check out past polls.