in reply to best way to print paragraphs of text
works just fine (but the output will have leading spaces).if ($today eq 'Monday') { print <<" OUTPUT"; Today is Monday. Bla bla bla. ... Who knows. MONDAY }
Note that in your example, the following works too:
print <<OUTPUT if $today eq 'Monday'; Today is Monday. Bla bla bla. ... Who knows. OUTPUT
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: best way to print paragraphs of text
by AnomalousMonk (Archbishop) on Aug 09, 2009 at 04:14 UTC | |
by JavaFan (Canon) on Aug 09, 2009 at 14:15 UTC | |
by Anonymous Monk on Aug 09, 2009 at 06:13 UTC |