http://www.perlmonks.org?node_id=743944


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

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 :)