On Mon 28 Aug, Bart Lateur wrote:
> On Mon, 28 Aug 2000 10:38:42 -0400 (EDT), Eric Roode wrote:
> 
> >People may throw rocks at me for this, but I'd like to suggest that
> >not only is a comment allowed on the terminator line, but a semicolon
> >also be allowed. Vis:
> >
> >    print <<EOL;
> >    EOL;   # This should work, too
> 
> Let me throw the first rock. I think this is confusing for the reader of
> your code. This looks like a statement, not an end-of-doc marker, so
> they'll search for the definition of the sub EOL.

I will catch the rock as this is getting ever closer to DWIM.

> 
> Next you'll propose that
> 
>       print <<EOL;
>       blah
>       EOL; print "OK!\n";
> 
> should work too, and print "OK!\n" as well.
> 

Yes why not, though it might be bad style.

> OTOH, what about this...
> 
>       print <<EOL
>       blah
>       EOL;
> 
> which makes this a full blown statement (note the missing semicolon in
> the first line)...

Yes as well.


> 
> Nah!
> 

I think we are likely to disagree...

Richard


-- 

[EMAIL PROTECTED]

Reply via email to