Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by NetWallah (Canon)
on Mar 15, 2021 at 17:36 UTC ( [id://11129687]=note: print w/replies, xml ) Need Help??


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

Alternative to pryrt's module-based solution:

my $line2; eval "\$line2=\"$line\""; # Now you can print $line2

                "Avoid strange women and temporary variables."

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11129687]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-24 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found