in reply to pack, unpack and internal represenation of numbers

What everybody said, plus, even if you weren't being bitten by a string representation of a number, nobody promised you that your number would be kept in an int (and not, say, a double). See perlnumber for the gory details.