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
In reply to Re^2: Line break interpretation
by davorg
in thread Line break interpretation
by fpondemer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |