On Fri, Sep 15, 2000 at 06:38:37PM +0100, Richard Proctor wrote:
> 1) << removes whitespace equivalent to the terminator (e) this is largely
> backward complatible as many existing heredocs are unlikely to have white
> space before the terminator.
> 
> 2) <<< removes whitespace equivalent to the smallest whitespace (d)
> 
> or are these the options that will satisfy everybody [no but its worth a try]
> 
> 1) << Does just what it does now
> 
> 2) <<< implements (d) or (e)


I'd say:

1) << does what it does now mod RFC 111 (ie. you can put whitespace in the
   terminator, but it doesn't effect anything)

2) <<< does (e).

3) distribute a collection of dequote() mutations with perl.

4) mention the s/// tricks in the documentation (<<POD =~ s/// seems dead)

(d) can always be implemented as a simple Perl function (one of the
many dequote() mutations), (e) cannot.

I think that'll make everyone happy.


> [[there is still the tabs debate however]]

Tabs are easy, don't expand them.  Consider them as a literal
character.  This assums that the code author is going to use the same
keystrokes to indent their here-doc text as the terminator, about as
safe an assumption as any for tabs.

Maybe I'm being too simplistic, I don't use tabs anymore.

-- 

Michael G Schwern      http://www.pobox.com/~schwern/      [EMAIL PROTECTED]
Just Another Stupid Consultant                      Perl6 Kwalitee Ashuranse
I'm successful because I'm lucky.   The harder I work, the luckier I get.

Reply via email to