in reply to (bbfu) (perl -c runs code) Re3: syntax check from within perl
in thread syntax check from within perl

yeah, and how is that less secure than an eval? you can't do anything about code in a BEGIN block short of parsing it out (which can be difficult). you have no point
  • Comment on Re: (bbfu) (perl -c runs code) Re3: syntax check from within perl

Replies are listed 'Best First'.
(bbfu) (perl -c runs code) Re5: syntax check from within perl
by bbfu (Curate) on Mar 02, 2002 at 07:35 UTC

    My point was that perl -c is no more (or less) secure than evaling the code. (The other?) Anonymous Monk suggested that eval was insecure and that the original poster should use perl -c instead. I was simply pointing out that it would be no better.

    bbfu
    Seasons don't fear The Reaper.
    Nor do the wind, the sun, and the rain.
    We can be like they are.