develooper Front page | perl.perl5.porters | Postings from July 2011

Re: Solving the *real* Dot Problem (was: Is 5.16 the time to remove\N, the complement of \n, from being experimental?)

Thread Previous | Thread Next
From:
H.Merijn Brand
Date:
July 7, 2011 03:01
Subject:
Re: Solving the *real* Dot Problem (was: Is 5.16 the time to remove\N, the complement of \n, from being experimental?)
Message ID:
20110707120102.2dc9aca0@pc09.procura.nl
On Wed, 06 Jul 2011 19:33:17 -0600, Tom Christiansen <tchrist@perl.com>
wrote:

>     1 = no  re /s       (traditional and annoying)
>     2 = use re /s       (necessary but insufficient)
>     3 = \V              (improved #1)
>     4 = \X              (improved #2)
>     5 = \X unless \R    (improved #2, #3)
> 
> See?  How often do you guys write the *wrong* one of those?

Never
 
> If you are like most of us, almost always.  And that’s a problem.

To be honest, I more often "forget" that \r and \n are part of \s than
that I appear to use . the wrong way.

-- 
H.Merijn Brand  http://tux.nl      Perl Monger  http://amsterdam.pm.org/
using 5.00307 through 5.14 and porting perl5.15.x on HP-UX 10.20, 11.00,
11.11, 11.23 and 11.31, OpenSuSE 10.1, 11.0 .. 11.4 and AIX 5.2 and 5.3.
http://mirrors.develooper.com/hpux/           http://www.test-smoke.org/
http://qa.perl.org      http://www.goldmark.org/jeff/stupid-disclaimers/

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