in reply to Passing digits in perl

what did you type in? Try  $inp = '12345'; and see what happens