Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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
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 chilling in the Monastery: (5)
As of 2014-10-23 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (123 votes), past polls