Adding another bit:
if (1) { $_= <<" END"; Here is some text which needs to be flush to the left margin and has indented parts END /^(\s*)/; print s/^$1//gmr; }
Update:
Here is another one:
if (1) { print <<" EOT" =~ s/^(\s*)//r =~ s/^$1//gmr; Here is some text which needs to be flush to the left margin and has indented parts EOT }
Greetings,
-jo
In reply to Re^6: Here documents in blocks [Updated]
by jo37
in thread Here documents in blocks
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |