in reply to Re: Would someone mind helping me understand this Perl OO code?
in thread Would someone mind helping me understand this Perl OO code?
Right. Which is what I meant by the 'one off' error - since $pkg is the first variable in the @_ argument list, it would mistakenly get $main::ip assigned to $Node::pkg, right? So is the code wrong? Like I said, it seems to work though.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Would someone mind helping me understand this Perl OO code?
by almut (Canon) on Dec 22, 2009 at 16:04 UTC | |
by romandas (Pilgrim) on Dec 22, 2009 at 16:11 UTC | |
by almut (Canon) on Dec 22, 2009 at 16:16 UTC | |
by kennethk (Abbot) on Dec 22, 2009 at 16:18 UTC | |
by ikegami (Patriarch) on Dec 22, 2009 at 16:18 UTC | |
Re^3: Would someone mind helping me understand this Perl OO code?
by ikegami (Patriarch) on Dec 22, 2009 at 16:10 UTC |
In Section
Seekers of Perl Wisdom