How can I manually interpolate string escapes in a Perl string?

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');

Leave a Comment