in reply to Re: Cava Packager quick question
in thread Cava Packager quick question

NO there isn't
BEGIN { use Cava::Pack; $0 = $Cava::Pack::EXEPATH; }

Replies are listed 'Best First'.
Re^3: Cava Packager quick question
by chocolateboy (Novice) on May 26, 2010 at 14:11 UTC
    That does indeed work. I guess the joke's on me for sticking to the documented APIs. I'm not quite sure why you (I'm assuming you're the developer, as EXEPATH doesn't appear in any of Cava's Perl modules, and everything else is closed source), would choose to unveil this here (and only here) rather than, say:

    • on the website
    • in the newsgroup
    • in the PODs

      Is. I'm not quite sure why you (I'm assuming you're the developer

      No, I am not the developer. I am just some Anonymous Monk who looked around. $Cava::Pack::BINPATH and $Cava::Pack::RESPATH are documented, but $Cava::Pack::EXEPATH is not but it should be documented :)

      I think it sucks Cava::Pack doesn't contain pod, and that the documentation isn't available on the website, but only as part of the program.

      I also looked at your PSMEncoder really hard, and if you say there's code for determining $0 in Cava, its well hidden.