How do I unescape a string?

It depends just what you mean by ``escape''. URL escapes are dealt with in perlfaq9. Shell escapes with the backslash (\) character are removed with

    s/\\(.)/$1/g;
This won't expand "\n" or "\t" or any other special escapes.
Back to perlfaq4