in reply to s/// operator and undef question...

Ok, regardless of what is happening, merlyn explained the situation.
$string =~ /foo/; $string =~ //; # this repeats the last successful match $string =~ /foo/; $string =~ s//bar/; # again, /foo/ is used in place of //


japhy -- Perl and Regex Hacker