Syntactic Confectionery Delight | |
PerlMonks |
Re: phantom subroutine parameter valuesby blahblahblah (Priest) |
on Apr 15, 2008 at 03:08 UTC ( [id://680422]=note: print w/replies, xml ) | Need Help?? |
This will happen when you call a sub with an ampersand but without any parentheses, like the following:
⊂ Doing so makes the calling sub's @_ visible to called subroutine. To avoid this, either omit the ampersand or include empty parens when calling a sub with no args. See perlsub for more info.
In Section
Seekers of Perl Wisdom
|
|