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.
In reply to Re^3: if (UNIVERSAL::isa($r, ref $l))
by adrianh
in thread if (UNIVERSAL::isa($r, ref $l))
by hossman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |