develooper Front page | perl.perl5.porters | Postings from August 2010

Re: qr stringification: why are xism always present? I'm worried about backward compatibility

Thread Previous | Thread Next
From:
Eric Brine
Date:
August 1, 2010 17:36
Subject:
Re: qr stringification: why are xism always present? I'm worried about backward compatibility
Message ID:
AANLkTim=AWr_N2YP0o7Hi9BST65rx=bvw4HC2y0dk7dn@mail.gmail.com
On Sun, Aug 1, 2010 at 1:24 PM, karl williamson <public@khwilliamson.com>wrote:

> Perhaps an example will clarify things.  Currently if you say qr/foo/, the
> stringification is (?-xism:foo)
> If you instead say qr/foo/xm, the stringification is (?mx-is:foo).
>

my $re = qr/./;
/foo$re/s

Without the -s, the "." would match newline.

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