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');
More Related Contents:
- Data consolidation using Perl [closed]
- How can i do this in perl, shortcut truthtable [closed]
- How to retrieve the values of required keys in Perl [closed]
- Perl: Meaning of double squared brackets after a string?
- What does this HTML::Parser() code do in Perl? [closed]
- Why use strict and warnings?
- Why does modern Perl avoid UTF-8 by default?
- Why is three-argument open calls with autovivified filehandles a Perl best practice?
- What’s the difference between Perl’s backticks, system, and exec?
- How can I parse dates and convert time zones in Perl?
- Which one is good practice, a lexical filehandle or a typeglob?
- How do I tell if a variable has a numeric value in Perl?
- Perl memory usage profiling and leak detection?
- How should I use the “my” keyword in Perl?
- Global symbol requires explicit package name
- How do I include functions from another file in my Perl script?
- How can I check if a file exists in Perl?
- Use of ‘use utf8;’ gives me ‘Wide character in print’
- How can I interact with ClearCase from Perl?
- How can I start an interactive console for Perl?
- What reasons are there to prefer glob over readdir (or vice-versa) in Perl?
- How do I convert a date/time to epoch time (unix time/seconds since 1970) in Perl?
- How to convert letters with accents, umlauts, etc to their ASCII counterparts in Perl?
- What is the meaning of @_ in Perl?
- How do I list available methods on a given object or package in Perl?
- How can I find memory leaks in long-running Perl program?
- Perl DBD::Oracle Module installation
- How can I calculate the number of days between two dates in Perl?
- How can I treat command-line arguments as UTF-8 in Perl?
- What decides the order of keys when I print a Perl hash?