note
epoptai
[Open]ing a dumped file and [eval]ing the string never even
occured to me, but I can see why it's dangerous (with
[id://43585|examples on perlmonks]). I've been
using [require], with [eval] to catch the
error. Is this a simpler safe solution?
<code>
eval "require '$dumped'";
</code>
<b>Update:</b> Thanks [tadman] for explaining that.
<p><font size="-1">
--<br>
Check out my <A HREF="/index.pl?node=Perlmonks+Related+Scripts">Perlmonks Related Scripts</A> like <A HREF="/index.pl?node=framechat">framechat</A>,
<A HREF="/index.pl?node=reputer">reputer</A>, and <A HREF="/index.pl?node=xNN">xNN</A>.</font>
92509
92509