http://qs321.pair.com?node_id=1185465


in reply to Re: Accessing the hash name in perl
in thread Accessing the hash name in perl

One way to execute possibly unsafe code is with Safe. In this case, if all the external code does is define a data structure, you might even get away with something like my $s = Safe->new; $s->rdo($filename). But I definitely agree with trying to change the input format first, or at least making it a Perl module.