in reply to Re^2: limiting scope of 'eval'??
in thread limiting scope of 'eval'??

Perhaps your are re-inventing the wheel for the furtherance of your own knowledge, or as a homework assignment. Otherwise, I can't help but wonder why you aren't using one of the existing templating systems out there, like Template Toolkit (http://template-toolkit.org)... ?

--
edan

Replies are listed 'Best First'.
Re^4: limiting scope of 'eval'??
by ManFromNeptune (Scribe) on Aug 22, 2004 at 17:10 UTC
    Yes, its a long story... I am actually using TemplateToolkit in another part of this application. However, the part I'm trying to figure out here has to be end-user-editable (also from a web page that lets them edit the aforementioned textfile.)

    The point above about the system() call is a good one. Methinks there are probably too many security issues with letting people define perl code to be executed by the system... the sandbox isn't well enough controlled.

    Alrighty then... back to the drawing board.

    cheers
    MFN