Perl 5.6 fixes
Revamp input processing to accept bigints