It's missing error handling and if $x contains any unescaped single quotes, it'll break. Still, it's another way to do it.my $x = '\n'; my $string = '$x = "' . qq|$x| . '";'; eval $string; print "->$x<-\n";
In reply to Re: reverse quotemeta?
by chromatic
in thread reverse quotemeta?
by sparky8342
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |