in reply to Fixing nits with $object->can($method);

I really dislike what this module is trying to do.

All that can is doing is telling you what will be called if you try to call that method. You're noticing that the imported functions are littering your namespace and providing things to trip over. So you're going to lie about where the pitfalls are.

What I would prefer is a way to import functions and have them not also be methods. Fixing that in Perl is a language issue, so you can't. But second best would be to have a module that allows you to rename what things will be imported as so you can get rid of your conflicts. Whose API might look like this:

# This imports from Module and does the following renamings: # # foo => _foo # bar => _bar # hello => _baz_hello # world => _baz_world # use with_prefix Module => qw(foo bar =_baz_ this that);
(Trick: import into another module then re-export from there to your final module.)

And now you can reposition the obstacle course rather than lying about it.