If I may draw your attention to something else?
chomp ($input = <STDIN>); $input = $value; # <--- are we sure about this?!? #call subroutine to check user input verification($value)
If I may suggest $value = $input?
In reply to Re: Passing a scalar to a subroutine
by Anonymous Monk
in thread Passing a scalar to a subroutine
by rspishock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |