Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Detecting Overridden Methods

by ikegami (Patriarch)
on Feb 05, 2007 at 19:38 UTC ( [id://598391]=note: print w/replies, xml ) Need Help??


in reply to Re: Detecting Overridden Methods
in thread Detecting Overridden Methods

our $can_foo;
is not as good as
my $can_foo;
There's no need for a package variable here.

MyPackage->can("foo");
is not as good as
__PACKAGE__->can("foo");
Less redundancy means smaller chance to make an error.

I had written this solution before coming up with the one I posted. I couldn't see any advantages to it, so I only included it in my post in comment tags.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://598391]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (None)
    As of 2024-04-25 01:41 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found