in reply to Re^4: Passing a regex from a CGI HTML form (user supplied regex substitution without eval)
in thread Passing a regex from a CGI HTML form

print Substitution("canned","working"); #canned print Substitution("canned","compiles",'$1 $2','g'); #canned print Substitution("canned","flawed",'$1 $2'); #canned print Substitution("canned",".*",`ls`); #first directory entry `touch down`; print Substitution("canned",".*",`rm down`); #deleted file
  • Comment on Re^5: Passing a regex from a CGI HTML form (user supplied regex substitution without eval)
  • Download Code

Replies are listed 'Best First'.
Re^6: Passing a regex from a CGI HTML form (user supplied regex substitution without eval)
by Anonymous Monk on Sep 01, 2016 at 06:51 UTC

    Heheh, what do you think that proves?

      lol at first I was really excited, but no you are right it doesn't prove anything because $rep has to be a string. But there should be a way to do what I'm trying else the module authors and yourself would not couch your words!

        lol at first I was really excited, but no you are right it doesn't prove anything because $rep has to be a string. But there should be a way to do what I'm trying else the module authors and yourself would not couch your words!

        You're confused , see Re^2: Passing a regex from a CGI HTML form [SOLVED]