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
Ricardo Signes
August 6, 2013 19:57
Re: [perl #119151] perldoc perlre does not appear to mention /r
Message ID:
* Eric Brine <> [2013-08-06T15:33:54]
> On Tue, Aug 6, 2013 at 1:51 PM, Karl Williamson <>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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About