Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^3: Can't get \n or other character/translation escapes to interpolate if originally read from a data fileby pryrt (Abbot) |
on Mar 15, 2021 at 19:06 UTC ( [id://11129712]=note: print w/replies, xml ) | Need Help?? |
Like I said, I had never used the String::Interpolate module before. Because they had the safe versions of their functions, I thought that they protected against things like that... but it appears not. If the OP wants more than just \n available as escapes in his processing, however, the list of substitutions will creep up as the rules/desires change... especially with the translation escapes. I was hoping that String::Interpolate was a way to avoid re-inventing that wheel, but I guess not.
In Section
Seekers of Perl Wisdom
|
|