Use an editor macro to backslash all the double quotes in it so that it's one big string.
That's yucky
my $bob = 1;
print <<"__HELLO_HERE_DOCUMENTS__";
print 1;
die 2;
exit 3; HELLO $bob!!!!!!!!1
__HELLO_HERE_DOCUMENTS__
And you can always use an odd delimiter like
perl -le" $bob = 1; print qqº i am quoted $bob º, qq¿ me too $bob ¿"
For more info on here-documents,
`perldoc perldata' and
`perldoc -q "here document"'
| MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!" |
| I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README). |
| ** The third rule of perl club is a statement of fact: pod is sexy. |