Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: I don't use printf enough

by DentArthurDent (Monk)
on Oct 22, 2003 at 19:23 UTC ( #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.

Comment on Re: I don't use printf enough

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2015-11-29 00:15 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (746 votes), past polls