Subject: | shebang line options lost |
Options on the shebang line of a perl script are
not used when run via a par executable.
(Could a perl -x somewhere fix this?)
$ cat cmdopts.pl
#!/usr/bin/perl -nalw
print "running";
print join ":", @F;
$ echo "a b c" | ./cmdopts.pl
running
a:b:c
$ pp -o cmdopts cmdopts.pl
$ ls -l
total 1.4M
-rwxr-xr-x 1 bsb bsb 1.3M Jul 5 16:21 cmdopts*
-rwxr-xr-x 1 bsb bsb 59 Jul 5 16:18 cmdopts.pl*
$ echo "a b c" | ./cmdopts
running$
$ pmvers PAR
0.80
$ perl -v
This is perl, v5.6.1 built for i386-linux