mark4 has asked for the wisdom of the Perl Monks concerning the following question:
Works butrequire "<relitive 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:require "<absolute path>/<program>.pl";
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>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: require "<absolute path>" is not working with "pp.exe"
by Anonymous Monk on Mar 05, 2017 at 12:42 UTC |