Well, you can simply use the printf function!
It is just like in C++.
Go to PerlDoc.com or simply type "printf" in the search box at the top of the page!
Printf should be used only if you really need to. Most of the formatting can be done with the print() function.