On Mon 28 Aug, Eric Roode wrote:
> Richard Proctor proposed:
> >
> >      All of these should work:
> >      
> >      print <<EOL;
> >EOL
> >      print << EOL;
> >   EOL
> >      print <<EOL ;
> >EOL     # this is the end of the here doc
> 
> 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
> 
> Yes, I know that it can be done as:
> 
>     print <<"EOL;";
>     EOL;
> 
> but (imho) the prior example has high DWIM value, and is keeping with
> the spirit of the RFC.

I like it...  I think I will add this to the next version.

Richard


-- 

[EMAIL PROTECTED]

Reply via email to