[sf-perl] amusing bug

David Alban extasia at extasia.org
Tue May 4 11:32:36 PDT 2010

it's so easy to miss the error in:

     $line =~ s{ s+ \z }{}xms;

when you expect to see:

     $line =~ s{ \s+ \z }{}xms;

i wondered why one of the lines was having its last character stripped
but the others were ok.

/me goes to get more caffiene

Live in a world of your own, but always welcome visitors.

More information about the SanFrancisco-pm mailing list