in reply to Re: Line break interpretation
in thread Line break interpretation
You're misunderstanding the question. The string is being read from a file. Try working with this:
#!/usr/bin/perl use strict; use warnings; my $message = <DATA>; # ... some code goes here print $message; __END__ Hello\nWorld
Putting the string in single quotes simulates the action of reading the data from a file.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|