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

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

Thread Next
From:
Eric Brine via RT
Date:
August 6, 2013 16:37
Subject:
[perl #119151] perldoc perlre does not appear to mention /r
Message ID:
rt-3.6.HEAD-2552-1375807033-681.119151-15-0@perl.org
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.


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=119151

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