I am experimenting with PAR and am having a problem with one of the 
examples from the pp man page.  The man page says

           % pp -o foo foo.pl bar.pl   # Pack 'foo.pl' and 'bar.pl' into 'foo'
           % ./foo                     # Run 'foo.pl' inside 'foo'

So I whipped up a couple of simple scripts and tried the example.

[EMAIL PROTECTED] par-test]$ for f in *.pl; do echo === $f ===; cat $f; done
=== bar.pl ===
#!/usr/bin/env perl
 
print "Hello bar\n";
=== foo.pl ===
#!/usr/bin/env perl
 
print "Hello foo\n";
[EMAIL PROTECTED] par-test]$ ./foo.pl; ./bar.pl
Hello foo
Hello bar
[EMAIL PROTECTED] par-test]$ pp -o foo foo.pl bar.pl
[EMAIL PROTECTED] par-test]$ ./foo
syntax error at script/main.pl line 2, near "my \"

I am probably making some really simple error, but I haven't discovered 
where to find out how to fix it.

I'm using PAR 0.74 and perl 5.8.0 on Linux.

Any suggestions as to what I'm doing wrong (or what I haven't read yet) 
gratefully accepted.

Regards,

Mike

-- 
[EMAIL PROTECTED]                    |           The "`Stok' disclaimers" apply.
http://www.stok.co.uk/~mike/       | GPG PGP Key      1024D/059913DA 
[EMAIL PROTECTED]                  | Fingerprint      0570 71CD 6790 7C28 3D60
http://www.exegenix.com/           |                  75D2 9EC4 C1C0 0599 13DA

Reply via email to