Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Format Syntax error on "."

by DrHyde (Prior)
on Feb 21, 2012 at 10:36 UTC ( #955269=note: print w/ replies, xml ) Need Help??


in reply to Format Syntax error on "."

Formats! Gosh, how quaint! sprintf() is the preferred - and far more readable - alternative.

Also, which is line 52? I doubt that many people can be bothered to count lines for you.


Comment on Re: Format Syntax error on "."
Download Code
Re^2: Format Syntax error on "."
by Mr. Muskrat (Abbot) on Feb 21, 2012 at 23:29 UTC

    For a usage like we see in the OP, sure, sprintf() is the way to go.

    Have you even written a multi-page report using nothing but sprintf()? It's painful but formats make it bearable.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2014-12-21 04:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (103 votes), past polls