|go ahead... be a heretic|
Re: Par::Packer and pathsby Anonymous Monk
|on Oct 27, 2011 at 18:39 UTC||Need Help??|
How to reference a file included with --addfile myfile.txt option?
Exactly as documented, PAR::read_file , example Re^4: introspection, or running pod2html on itself
However, how can I make access to that file universal from both EXE and when running the script through the Perl interpreter (perl foo.pl myfile.txt) ?
Through abstraction, naturally :)
...pwd... How can I reconcile that?
pp'ed programs do have the correct pwd, so what you're saying makes no sense
Maybe you wish to not rely on pwd, but chdir to where you wish to be?
or use GimmeFile above? Or maybe File::ShareDir::PAR?