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

I'd recommend
my @here_docs = ( <<'__RE__', <<'__RE__', <<'__RE__' ); Reach Holly Smith for help by sending an email to hollysmith@nosuchdomain.com. __RE__ For more information, contact Holly Smith at hollysmith@nosuchdomain.com. __RE__ For more information, contact Holly Smith at (800) 555-1212 or via email to hollysmith@nosuchdomain.com __RE__

in combination with quotemeta

not sure what the q|...\n...| in single quotes in your code is supposed to do, do you plan to match \ and n literally?

update

ok I got the literal \n part

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

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