in reply to Unexpected value in incoming variable.
Within a package, the first argument/parameter passed to a method is the package name, unless you are dealing with an object, in which case the first argument returned is the object itself. So to get your wanted results, you just need to add another variable capture:
package Alice; use strict; sub mTest2 { my ($self, $junk, $and) = @_; print "$junk=$junk\n\$and=$and"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Unexpected value in incoming variable.
by BUU (Prior) on Jan 10, 2004 at 06:58 UTC |