Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Problems? Is your data what you think it is?
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2014-04-17 22:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (458 votes), past polls