in reply to Checking if a subroutine has been defined in a package...

I believe defined will do the trick...
if(defined &bar::foo) # or package bar; if(defined &foo)

                - Ant
                - Some of my best work - Fish Dinner