Hi.. I'm learning Perl on my own, so I kinda miss out all the available functions. Is there a way to specify decimal precision in a number after a mathematical operation??
ex: I have 12.3456789 that I want to turn into 12.34 for now I used a RegEx to do this s/(\d+)\.(\d\d)(\d+)/$1\.$2/; but I'm sure that there is a better way of doing this. a function maybe ( and I think that regex is bad too ) any thoughts?
Chady | http://chady.net/