Re: RFC 164 (v1) Replace =~, !~, m//, and s/// with match() and subst()

[email protected] (Nathan Wiger)
Newsgroups perl.perl6.language.regex
Message-ID <[email protected]>
> =head1 TITLE
> 
> Replace =~, !~, m//, and s/// with match() and subst()

In a marked oversight, I'd also like to note that tr// would be replaced
with trade:

    Perl 5                      Perl 6
    --------------------------- --------------------------
    $str =~ tr/a/b/;            $new = trade /a/b/, $str;
    tr/a/b/;                    trade /a/b/;

This will be reflected in v2. However, it should be fairly obvious how
this fits in with the others.

I know 'tr' is really 'translate', but that's too long and it looks like
'trans' is going to be taken up by Transactional Variables (RFC 130).
'trade' connotes what is happening pretty accurately, I think.

-Nate
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.