in reply to Re: Re: if (UNIVERSAL::isa($r, ref $l))
in thread if (UNIVERSAL::isa($r, ref $l))
I really don't see what advantage __PACKAGE__ has over a hardcoded class name except that it's Pythonesquely uglier.
I prefer __PACKAGE__ (or CLASS) because I like to say the class name once and only once in the module source (you should know why that's a good motto to live by :-).
That way I don't have to worry about grepping the module source if I change the name of the module.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^3: if (UNIVERSAL::isa($r, ref $l))
by demerphq (Chancellor) on Jul 25, 2003 at 00:06 UTC |