in reply to Perl equivalent of JavaScript parseInt()?
There isn't an actual equivalent function. However, take a look at these: