[EMAIL PROTECTED] (Luke Palmer) writes:
>     $substituted = ($text ~~ s/$pattern/$replacement/) but nothing;

Surely "no buts"? :)

> What I really want is a functional version of s///.  Like:
>     my $substituted = $text.s(/$pattern/, { $replacement });
> Without modifying $text.

$rubyometer++;

-- 
FAILURE:
    When Your Best Just Isn't Good Enough

                                                    http://www.despair.com

Reply via email to