in reply to my() troubles

If I've got your question correctly,
my $digit_input = &input;
that is (in the sub);
return $input;
makes the sub input give back the value of $input.

a