Okay, devil's advocate.
Paragraphs.
sub legal {
print <<<FOO
Attention criminal slacker, we have yet
to receive payment for our legal services.
Love and kisses
FOO
}
Obviously stripping all whitespace in this case is wrong, yet its
exactly the kind of thing which you'd want to use <<< for. You could
prescan for the smallest number of leading whitespace and strip that.
Might be more trouble than its worth.
--
Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED]
Just Another Stupid Consultant Perl6 Kwalitee Ashuranse
Plus I remember being impressed with Ada because you could write an
infinite loop without a faked up condition. The idea being that in Ada
the typical infinite loop would be normally be terminated by detonation.
-- Larry Wall in <[EMAIL PROTECTED]>
- RFC 111 (v1) Whitespace and Here Docs Perl6 RFC Librarian
- Re: RFC 111 (v1) Whitespace and Here Docs Graham Barr
- Re: RFC 111 (v1) Whitespace and Here Docs Michael Fowler
- Re: RFC 111 (v1) Whitespace and Here Docs Chaim Frenkel
- Re: RFC 111 (v1) Whitespace and Here Docs Michael Fowler
- Re: RFC 111 (v1) Whitespace and Here Docs Philip Newton
- Re: RFC 111 (v1) Whitespace and Here Docs H.Merijn Brand
- Re: RFC 111 (v1) Whitespace and Here Docs Bryan C . Warnock
- Re: RFC 111 (v1) Whitespace and Here Docs Michael G Schwern
- Re: RFC 111 (v1) Whitespace and Here Docs Peter Scott
- Re: RFC 111 (v1) Whitespace and Here Docs Tom Christiansen
- Re: RFC 111 (v1) Whitespace and Here ... Peter Scott
- Re: RFC 111 (v1) Whitespace and Here ... Casey R. Tweten
- Re: RFC 111 (v1) Whitespace and ... Tom Christiansen
- Re: RFC 111 (v1) Whitespace and Here Docs Michael Fowler
- Re: RFC 111 (v1) Whitespace and Here Docs Tom Christiansen
- Re: RFC 111 (v1) Whitespace and Here ... Michael Fowler
- Re: RFC 111 (v1) Whitespace and ... Tom Christiansen
- Re: RFC 111 (v1) Whitespace ... Michael Fowler
