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 17:51
Subject:
Re: [perl #119151] perldoc perlre does not appear to mention /r
Message ID:
520137A3.4070701@khwilliamson.com
On 08/06/2013 10:37 AM, Eric Brine via RT wrote:
> On Sun Aug 04 20:27:43 2013, jarich wrote:
>>
>> This is a bug report for perl from jarich@perltraining.com.au,
>> generated with the help of perlbug 1.39 running under perl 5.16.2.
>>
>>
>> -----------------------------------------------------------------
>> G'day folk,
>>
>> Thank you again for all the awesomeness.  I was discussing /r with
>> a friend today and they asked to see documentation.  I can't find
>> it mentioned anywhere in perldoc perlre (although it is in
>> perlrequick).
>
> That's because it has noting to do with regular expressions. It's
> modifier for s///, and like other operators, s/// is documented in perlop.
>
> http://perldoc.perl.org/perlop.html#s/PATTERN/REPLACEMENT/msixpodualgcer
>
>> I checked the documentation for 5.18.0 too, and couldn't find it in
>> perlre there, either.
>>
>> This seems like an accidental omission.
>
> No, it's intentional.
>
>

Nonetheless, I believe it would be better to briefly mention it in 
perlre with a pointer to perlop.  It's confused more than one person, 
even though no one seems confused by the lack of a mention of /e.  I 
think both of them should be mentioned in perlre.  We could just say 
that these are s/// flags, or we could briefly indicate what they do; I 
have no problems with Tony's wording.


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