develooper Front page | perl.perl5.porters | Postings from February 2000

Re: proposed perlpod.pod patch

Thread Previous | Thread Next
From:
Larry Wall
Date:
February 4, 2000 14:43
Subject:
Re: proposed perlpod.pod patch
Message ID:
200002042242.OAA19342@kiev.wall.org
Ronald J Kimball writes:
: However, I'm curious about why a newline isn't allowed as the whitespace
: following C<<.  Does that mean that this would be legal:
: 
: C<< 
:    if ($x < $y) {
:      print "Hello!\n";
:    }
: >>
: 
: But this wouldn't:
: 
: C<<
:    if ($x <$y) {
:      print "Hello!\n";
:    }
: >>
: 
: ?

Why would you ever put something like that into a filled paragraph
that is throwing away all the newlines anyway?  If you want a multiline
chunk of code you would just put it in a verbatim paragraph.  The above
just turns into "if ($x < $y) { print "Hello!\n"; }" inlined into the
paragraph.

Of course, this doesn't having much bearing one way or the other on
whether newline should be legal, other than that if you make newline
legal, people will expect it to do something it doesn't.

Larry

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About