Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Perl: porters

[perl #113962] /r modifier on substitutions - variant returning undef if no match

 

 

Perl porters RSS feed   Index | Next | Previous | View Threaded


perlbug-followup at perl

Jul 23, 2012, 8:14 PM

Post #1 of 1 (41 views)
Permalink
[perl #113962] /r modifier on substitutions - variant returning undef if no match

On Tue Jul 03 03:01:56 2012, eda [at] waniasset wrote:
> ...
>
> my $old = 'cat';
> (my $new = $old) =~ s/cat/dog/ or die;
> [...]
> my $new = $old =~ s/cat/dog/R // die;

My feeling is that in this case, the user should simply use the non-r form. I am open to hear
more on this, but I think this is not worth the complexity of Yet Another Postfix Modifier.

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

Perl porters RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.