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:
Karl Williamson
Date:
August 6, 2013 20:33
Subject:
Re: [perl #119151] perldoc perlre does not appear to mention /r
Message ID:
52015D6E.3050000@khwilliamson.com
On 08/06/2013 01:56 PM, Ricardo Signes 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.
>

I like this idea

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