I just saw this post. I tried this and it returned the wrong file path. It wasnt the script that the function was in.
SV = RV(0x1ee3f430) at 0x1ee8f8c0 REFCNT = 1 FLAGS = (TEMP,ROK) RV = 0x1ee8fbc0 SV = PVCV(0x1ee66a10) at 0x1ee8fbc0 REFCNT = 2 FLAGS = () IV = 0 NV = 0 COMP_STASH = 0x1a6ad180 "main" ROOT = 0x0 XSUB = 0x0 XSUBANY = 0 GVGV::GV = 0x1edf27a0 "main" :: "MODULES_ORG_PERSONAL_SETTIN +GS_userManager_emergencyContacts" FILE = "/home/website/API/APIScripts/Admin.pl" DEPTH = 0 FLAGS = 0x0 OUTSIDE_SEQ = 40228 PADLIST = 0x1ee8fb90 PADNAME = 0x1ee7c6a0(0x0) PAD = 0x1ee7c6b0(0x1f042fc0) OUTSIDE = 0x0 (null)
This function is not in Admin.pl

In reply to Re^2: Getting perl file path from Function by clintonm9
in thread Getting perl file path from Function by clintonm9

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.