Simon Cozens <[EMAIL PROTECTED]> writes: > [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++;
Only if it goes into the language Simon. -- Piers