On Thu, Sep 14, 2000 at 10:52:16AM -0700, Nathan Wiger wrote: > Before you scream "Bloody murder", please read on... I'll wait patiently for the end... > if( $is_fitting && $is_just ) { > die subst /\s{8}(.*?\n)/$1/g, qq/ > The old lie > Dulce et decorum est > Pro patria mori. > /; > } > > Seems to work for me (and yes I'm working on a prototype of RFC 164's > functions). No, it still has all the problems of any other regex-based solution. If you shift the code right or left, it breaks (due to the \s{8}) and you're back to counting whitespace again. And as Glen pointed out, what about that leading newline? Can I scream now? -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse MORONS!
- Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace a... Michael G Schwern
- Re: RFC 111 (v3) Here Docs Terminators (Was Whitesp... Ariel Scolnicov
- Re: RFC 111 (v3) Here Docs Terminators (Was Whi... Dave Storrs
- Re: RFC 111 (v3) Here Docs Terminators (Was Whi... Ariel Scolnicov
- Re: RFC 111 (v3) Here Docs Terminators (Was Whitesp... Michael G Schwern
- Drop here docs altogether? (was Re: RFC 111 (v3) He... Nathan Wiger
- Re: Drop here docs altogether? (was Re: RFC 111... Peter Scott
- Re: Drop here docs altogether? (was Re: RFC 111... Bart Lateur
- Re: Drop here docs altogether? (was Re: RFC 111... Glenn Linderman
- Re: Drop here docs altogether? (was Re: RFC 111... Glenn Linderman
- Re: Drop here docs altogether? (was Re: RFC 111... Michael G Schwern
- Re: Drop here docs altogether? (was Re: RFC 111... Nathan Wiger
- Re: RFC 111 (v3) Here Docs Terminators (Was Whitesp... Glenn Linderman
- Re: RFC 111 (v3) Here Docs Terminators (Was Whi... Michael G Schwern
- Re: RFC 111 (v3) Here Docs Terminators (Was Whi... Michael G Schwern
- Re: RFC 111 (v3) Here Docs Terminators (Was Whi... Nathan Wiger
- Re: RFC 111 (v3) Here Docs Terminators (Was Whi... Richard Proctor
- Re: RFC 111 (v3) Here Docs Terminators (Was Whi... Michael G Schwern
- Re: RFC 111 (v3) Here Docs Terminators (Was Whi... Richard Proctor
- Re: RFC 111 (v3) Here Docs Terminators (Was Whi... Glenn Linderman
- Re: RFC 111 (v3) Here Docs Terminators (Was Whi... Nathan Wiger