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

Re: Identify subs and their source

by John M. Dlugosz (Monsignor)
on May 24, 2011 at 22:14 UTC ( #906581=note: print w/replies, xml ) Need Help??

in reply to Identify subs and their source

Regarding I'm not sure how to distinguish the imported symbols from those defined in the target file., I've heard of something for that.

This is similar to what autoclean and Moose does.

I think if you use the Sub::Name module, you can find out the full name that the sub was declared in. That will tell you if it was imported.