Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: I don't use printf enough

by DentArthurDent (Monk)
on Oct 22, 2003 at 19:23 UTC ( [id://301334]=note: print w/replies, xml ) Need Help??


in reply to I don't use printf enough

Neither one is better than the other really in a syntactical sense. They're about the same length. I've found with printf that it's easy to lose track of what is printing in which part of the format, whereas the print one has all of them embedded where they go.

I generally use print, but I do use sprintf a lot to generate strings if operations are then done with or on them.

I'm a C programmer who uses perl sometimes, so take my opinions as worth a large grain of NaCl. However, there are a lot of True Believers (tm) on here who would have you think that anything that looks like C is evil. That is worth an equivalent amount of NaCl.

If chemistry wasn't your best subject, NaCl is the chemical formula for table salt.
----
May your tongue cleave to the roof of your mouth with the force of a thousand caramels.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-26 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found