in reply to how to find the module of a specific function?

> the module, in which the login function appears?

Don't know what you mean with "appears" ..

  1. If you want to know which modules actually use this method (!) , ...

    ... you could use caller inside the method to report the locations at runtime.

    (not sure if applying B::Xref helps with methods)

  2. If you want to know where the method was defined ...

    ... you can might be able to use ->can to get the function's reference and use introspection with B to find the origin. (untested, will update code)

Update

the latter can be done without extra module using some half cryptic B code, but I'm reluctant digging it out.

IIRC an example can be found in the O'Reilly book "Perl Hacks" or google is your friend.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!