|
|
| No such thing as a small change | |
| PerlMonks |
Re: Passing a scalar to a subroutineby Anonymous Monk |
| on Feb 02, 2012 at 15:22 UTC ( #951466=note: print w/ replies, xml ) | Need Help?? |
|
Actually argument passing isn't the problem in your code. Since you define $value in a file scope, it's visible to your subroutine w/o being passed. If I may draw your attention to something else?
If I may suggest $value = $input?
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||