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

Re: [perl #119151] perldoc perlre does not appear to mention /r

Thread Previous | Thread Next
From:
Eric Brine
Date:
August 6, 2013 20:49
Subject:
Re: [perl #119151] perldoc perlre does not appear to mention /r
Message ID:
CALJW-qHX==kqhHVBW+oq4acR_NPsTq393kPHagb1AWuYzJh_NQ@mail.gmail.com
Thanks, that's much better.


On Tue, Aug 6, 2013 at 3:56 PM, Ricardo Signes <perl.p5p@rjbs.manxome.org>wrote:

> * Eric Brine <ikegami@adaelis.com> [2013-08-06T15:33:54]
> > On Tue, Aug 6, 2013 at 1:51 PM, Karl Williamson <public@khwilliamson.com
> >wrote:
> > Are we going to add just one of the s///-specific and m//-specific flags?
> > Could they be in a separate section or could we at least acknowledge
> > they're not pattern match modifiers? I dislike for them to be listed as
> > pattern match modifiers when they aren't and when they can't be provided
> to
> > (?MODS) and (?MODS-MODS:...).
>
> A cross-reference would be useful.  The patch we have is better than
> nothing.
> Better than that might be something like:
>
>   There are a number of flags that can be found at the end of regular
>   expression constructs that are I<not> generic regular expression flags,
> but
>   apply to the operation being performed, like matching or substitution
> (C<m//>
>   or C<s///> respectively).  These flags, fully documented in
>   L<perlop/Whatever>, are:
>
>     e - (...eval stuff...)
>     r - (...replace stuff...)
>     g - (...globally stuff...)
>
> If the current patch is applied as-is, I think that's fine, and I can do
> the
> above a bit later.
>
> --
> rjbs
>

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