in reply to Passing a scalar to a subroutine
Passing arguments to subroutines in explained in perlintro and perlsub. To make it short, all the arguments are available in the special variable of name @_.
So your sub should start like this:
sub verification { my $value = shift; # accesses @_ ...
See also: shift.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Passing a scalar to a subroutine
by rspishock (Monk) on Feb 01, 2012 at 13:03 UTC |