Question: what is the difference between print and printf in perl?
Answer: print just outputs. printf takes a formatting string like "%3f" and uses it to format the output. sprintf is the same as printf except it doesn't actually output anything. It returns a formatted string.