in reply to Re: Checking for "return undef"
in thread Checking for "return undef"
Actually, a method can change the object it is called on, by assigning to $_[0]. This came as a surprise to me.
That's because @_ contains aliases to the passed arguments. It can be useful, but it's dangerous :)
Cheers,
Ovid
New address of my CGI Course.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Checking for "return undef"
by ysth (Canon) on Apr 21, 2004 at 18:35 UTC | |
by tye (Sage) on Apr 21, 2004 at 19:29 UTC |