scriplit has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks,

The source of my problem is the following piece of code:

use Safe; $s = new Safe; $s->deny_only(q(:dangerous)); $s->reval(q(use Data::Dumper;)); die $@ if $@;

If I simply put this in a text file and run it with "perl -w", I get the following output:

Possible unintended interpolation of @INC in string at /usr/lib/perl/5 +.10/DynaLoader.pm line 92. 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 int +o it.) at (eval 2) line 1 Compilation failed in require at (eval 2) line 1. BEGIN failed--compilation aborted at (eval 2) line 1.

I'm fighting with this for quite a long time now, trying several things to make this Dynaloader work in my Safe compartment, but nothing worked up to now... The behavior is the same with perl 5.8.8 under Windows and perl 5.10.0 under Ubuntu.

Probably I don't weigh up the implications of running code into a Safe compartment, so I do appreciate any comment :)

Thanks,
scriplit