In perl suppose I have a string like \'hello\\tworld\\n\', and what I want is:
\'hello\\tworld\\n\'
\'hello world \'
That is, \"hello\", then a li
Sounds like a problem that someone else would have solved already. I've never used the module, but it looks useful:
use String::Escape qw(unbackslash); my $s = unbackslash('hello\tworld\n');