Re:What’s new in Perl 5, Version 13
by prakashk on Tuesday September 28, 2010 @11:02AM
(#1735872)
I like the changes. Best of all, the non-destructive substitution.
[ Parent
| on HN ]
Re:What’s new in Perl 5, Version 13
by onedognight on Tuesday September 28, 2010 @11:53AM
(#1736070)
I agree that s///r is quite nice. In particular a use case that was not mentioned is that chained substitutions are now allowed.
$foo = $bar =~ s/this/that/r
=~ s/that/the other/r;Here is a list of changes since 5.12 (thus far!):
* http://search.cpan.org/~shay/perl-5.13.5/pod/perl5131delta.p...
* http://search.cpan.org/~shay/perl-5.13.5/pod/perl5132delta.p...
* http://search.cpan.org/~shay/perl-5.13.5/pod/perl5133delta.p...
* http://search.cpan.org/~shay/perl-5.13.5/pod/perl5134delta.p...
* http://search.cpan.org/~shay/perl-5.13.5/pod/perldelta.pod