http://www.perlmonks.org?node_id=301334


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.