I'm just curious to know if there are situations where evaling a single quoted literal with all single quotes escaped might still cause accidental interpolation.
After further thought, yes -- they could use backslash escapes to encode a single quote; for example, $literal could contain \x27; print system('ls -la'); \x27.
Update: Or not, as pointed out below -- I had rigged my test case a bit differently than the OP and went off on a tangent somewhere...
In reply to Re: Safe eval of string literals?
by simonm
in thread Safe eval of string literals?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |