In your subroutines,
my $input = @_;
should be something like
my $input = shift();
The way you're doing it, you're looking at the array @_ in scalar context, which, of course, returns the number of elements in the array.
In reply to Re: How to pass a variable to function selected from a hash
by eg
in thread How to pass a variable to function selected from a hash
by cat2014
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |