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:
Ricardo Signes
Date:
August 6, 2013 19:57
Subject:
Re: [perl #119151] perldoc perlre does not appear to mention /r
Message ID:
20130806195651.GB29637@cancer.codesimply.com
* 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