Hi,

In general I'm trying to do something like that:

1. create a safe compartment .
2. inherit certain variables/methods and objects to the new compartment.
3. apply few limitations to the compartment.
4. execute code under the new compartment via safe rdo() method which
    can execute perl code from a file.

assume the pseudo code :

content in main.pl


   use strict;
    ....
    ....
   $CPT= new Safe;           //create a compartment
   $CPT->limit();          //apply limitatations to the compartment
   $CPT->get_shares();      //share variables and functions....
   $CPT->rdo( file.pl);        //execute perl code in file.pl
   print $@;

content in file.pl

        use strict;
            use Data::Dumper;
            .......
        .......

when executing the main.pl
i get the error message:

Can't load module Data::Dumper, dynamic loading not available in this perl.
  (You may need to build a new perl executable which either supports
  dynamic loading or has the Data::Dumper module statically linked into it.)
 at file.pl line 2
Compilation failed in require at file.pl line 2.
BEGIN failed--compilation aborted at file.pl line 2.

any idea?

Tnx for your help.

Avi Nehori


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to