in reply to Re: Getting perl file path from Function
in thread Getting perl file path from Function

See require for information on require and caller for information on how/where a function was called.

Replies are listed 'Best First'.
Re^3: Getting perl file path from Function
by clintonm9 (Sexton) on Oct 04, 2010 at 18:21 UTC
    The only issues is I am not calling the sub. So can i use caller to get the information i need? See an example below:
    my ($package, $filename, $line) = caller(\&MODULES_ORG_PERSONAL_SETTIN +GS_userManager_emergencyContacts);

      What part of the caller documentation makes you think that this would work?