Think about Loose Coupling | |
PerlMonks |
Re: Passing a scalar to a subroutineby moritz (Cardinal) |
on Feb 01, 2012 at 12:52 UTC ( [id://951203]=note: print w/replies, xml ) | Need Help?? |
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:
See also: shift.
In Section
Seekers of Perl Wisdom
|
|