in reply to Re^2: eval() and security
in thread eval() and security

$ perl -e " $x = shift; /$x/" "(?{ die 666 })" Eval-group not allowed at runtime, use re 'eval' in regex m/(?{ die 66 +6 })/ at -e line 1. $ perl -Mre=eval -e " $x = shift; /$x/" "(?{ die 666 })" 666 at (re_eval 1) line 1. $ perl -Mre=eval -Te " $x = shift; /$x/" "(?{ die 666 })" Eval-group in insecure regular expression in regex m/(?{ die 666 })/ a +t -e line 1.

Replies are listed 'Best First'.
Re^4: eval() and security
by halfcountplus (Hermit) on Nov 24, 2009 at 18:00 UTC
    syntax error at -e line 1, near "=" Execution of -e aborted due to compilation errors.
    For all of those dude.

      On Unix, you need to use single quotes, or else the shell will interpolate $x etc.