I am running perl on Windows 10, I got the distrubution from ActiveState(ActivePerl-5.20.1.2000-MSWin32-x64-298557.msi). I am running into a problem when trying to run a program after packageing it using "pp.exe" The problem seems to be that:
require "<relitive path>/<program>.pl";
Works but
require "<absolute path>/<program>.pl";
does not. Has this problem been seen before? Short of making real ".pm's" and libray search paths, is there any quick fix? Below I have detailed the problem (program revs are in the outpus). The cmd window was captured below:
T:\perlwork>type ppe.pl use strict; require "T:/perlwork/my_lib/pps.pl"; print "Running perl version $]\n"; &ppd; T:\perlwork>type my_lib\pps.pl sub ppd { print "ppd was called\n"; } return (1); T:\perlwork>ppe.pl Running perl version 5.020001 ppd was called T:\perlwork>pp -o ppe.exe ppe.pl T:\perlwork>ppe.exe mkdir C:\Users\Mark\AppData\Local\Temp\par-4d61726b\cache-e3c0d385417c +3ed0233f2522aca4b8027da7f3e5\inc\lib\T:\: Invalid argument; The filen +ame, directory name, or volume label syntax is incorrect at C:/Perl/s +ite/lib/Archive/Zip/Archive.pm line 193. T:\perlwork>e ppe.pl T:\perlwork>"C:\Program Files\emacs-20.7\bin\runemacs.exe" ppe.pl T:\perlwork>type ppe.pl use strict; #require "T:/perlwork/my_lib/pps.pl"; require "my_lib/pps.pl"; print "Running perl version $]\n"; &ppd; T:\perlwork>pp -o ppe.exe ppe.pl T:\perlwork>ppe.exe Running perl version 5.020001 ppd was called T:\perlwork>pp --help PAR Packager, version 1.025 (PAR version 1.011) T:\perlwork>

In reply to require "<absolute path>" is not working with "pp.exe" by mark4

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.