Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Need help with clashing method names

by phaylon (Curate)
on Feb 15, 2009 at 16:36 UTC ( #743944=note: print w/ replies, xml ) Need Help??


in reply to Need help with clashing method names

I use namespace-clean (Disclaimer: I implemented it):

package Foo; use strict; use warnings; use Scalar::Util qw( blessed ); use parent 'Something::With::A::blessed::Method'; use namespace::clean; # this will show the method in the parent class say Foo->can('blessed');

Ordinary morality is for ordinary people. -- Aleister Crowley


Comment on Re: Need help with clashing method names
Download Code
Replies are listed 'Best First'.
Re^2: Need help with clashing method names
by dk (Chaplain) on Feb 17, 2009 at 08:53 UTC
    Oh this is great!!! Almost what I've needed. I've noticed you employed end_of_scope for this purpose, but I wonder if dereferencing the GV and checking GvIMPORTED() flags would be easier?

    Thank you!!

      Honestly? I have no idea what you're talking about :) It was only partly my idea, most of the kudos should go to Matt Trout and Florian Ragwitz.


      Ordinary morality is for ordinary people. -- Aleister Crowley
        Gah! I thought that YOU are Florian :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (11)
As of 2015-07-28 09:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls