in reply to Can't get \n or other character/translation escapes to interpolate if originally read from a data file

Note that the other suggested solutions of String::Interpolate and eval introduce security risks. For something less risky, see String::Unescape, which only works with a subset of Perl's escape sequences, and AFAICT from a quick look at the source none of them appear to be security-relevant.

  • Comment on Re: Can't get \n or other character/translation escapes to interpolate if originally read from a data file