Hi,

I'm just getting started with PAR.  It seems pretty nifty -- hopefully
I'll be a SuccessStory!

But for the moment I am having trouble which is summerized by the
following short script:

#!/usr/bin/perl -w
use strict;
use Safe;
my $cpt = new Safe;
$ {$cpt->varglob('foo')} = $cpt->reval('my $foo=5');
my $foo = $ {$cpt->varglob('foo')};
print $foo, $/;
## end of sample script

This short script should print "5" when it runs, which it does if you
run it as a perl script on either linux or Windows XP.  When I build a
par on linux, it runs fine -- happily printing "5" to the screen.

However, when I build a par (pp -o foo.exe foo.pl) on Windows XP and
try to run it, it spits up this error message:

 Unknown operator tag :default at Safe.pm line 156
         (in cleanup) Can't use an undefined value as a symbol reference at 
Safe.pm line 100.
 BEGIN failed--compilation aborted at -e line 835.

and exits (without evaluating the contents of the safe compartment).

I am using ActiveState's 5.6.1 build 638 (I know that's an old one,
but I have a sort of institutional reason for using that rather than
5.8.  If the solution is as simple as to upgrade to 5.8 -- cool,
although just now I failed to get pp to run to completion with 5.8.6
build 811)


This is a show-stopper for my real application, which makes use of
what security Safe.pm can provide.

Any suggestions?

Thanks,
Bruce

-- 
 Bruce Ravel  ----------------------------------- [EMAIL PROTECTED]  -or-
                                                  [EMAIL PROTECTED]
 Environmental Research Division, Building 203, Room E-165
 Argonne National Laboratory         phone and voice mail: (1) 630 252 5033
 Argonne IL 60439, USA                                fax: (1) 630 252 9793

 My homepage:    http://feff.phys.washington.edu/~ravel 
 EXAFS software: http://feff.phys.washington.edu/~ravel/software/exafs/

Reply via email to