in reply to phantom subroutine parameter values
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: phantom subroutine parameter values
by rpelak (Sexton) on Apr 15, 2008 at 03:53 UTC | |
by Discipulus (Canon) on Apr 16, 2008 at 08:00 UTC | |
by ikegami (Patriarch) on Apr 16, 2008 at 10:57 UTC |
In Section
Seekers of Perl Wisdom