Vulnerability Development mailing list archives

Re: execution inside of Perl reg ex?


From: "sporty o'one" <sporty () SPORTY ORG>
Date: Wed, 3 Jan 2001 10:34:18 +0000

this is exactly the reason for \Q\E

so \Q$this\E is safe

 As an operator, Perl will shell any command you put inside back
quotes and return the result of the shelled command. I assume this
would work inside a regular expression, but I haven't tried.



Current thread: