mmartin has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks,

I was trying to use the "/r" flag in a REGEX Search and Replace and I keep getting the error:
"Bareword found where operator expected at ./ line 11, near "s/Matt/Matthew/r" "

For Example:
#!/usr/bin/perl use warnings; use strict; my $str; my $str2; $str = "Hello World I'm Matt"; $str2 = $str =~ s/Matt/Matthew/r; print " str = $str\n"; print "str2 = $str2\n";
The server it's running on has Perl Version 5.8.8.
Was the Non-Destructive Flag "/r" not implemented in this version of Perl? If so, is it possible to get it without upgrading all of Perl..?

Thanks in Advance,