Eric Roode wrote:
>
> I suggest that there be NO tab/space conversion.
I also suggest that no whitespace stripping/appending/etc/etc be done at
all. If I write:
if ( $its_all_good ) {
print <<EOF;
Thank goodness this text is centered!
EOF
}
That should print out:
Thank goodness this text is centered!
Without forcing me to left-justify my EOF marker. Tying space-stripping
to the placement of EOF is a Bad Idea, IMO. Do this if you want:
if ( $its_all_good ) {
(my $s = <<EOF) =~ s/\s{8}(.*?\n)/$1/g; print $s;
Thank goodness this text isn't centered!
EOF
}
But this shouldn't be implicit in the language.
-Nate
- Re: RFC 111 (v3) Here Docs Term... Glenn Linderman
- Re: RFC 111 (v3) Here Docs Term... Tom Christiansen
- Re: RFC 111 (v3) Here Docs Terminat... Bart Lateur
- Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace an... H . Merijn Brand
- Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace an... Richard Proctor
- Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace an... Eric Roode
- Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace an... Eric Roode
- Re: RFC 111 (v3) Here Docs Terminators (Was Whitespa... Richard Proctor
- Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace an... Richard Proctor
- Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace an... Eric Roode
- Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace an... Eric Roode
- Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace an... Eric Roode
