|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Answer: Why does my subroutine not receive the scalar parameter as $_? |
| ( #192723=categorized answer: print w/ replies, xml ) | Need Help?? |
|
Q&A > subroutines > Why does my subroutine not receive the scalar parameter as $_? contributed by BrowserUk
Use $_[0] (the first element of @_) instead of $_. See perlman:perlsub Description for explanation.
|
|
||||||||||||||||||