http://qs1969.pair.com?node_id=84312


in reply to Pattern Substitution..

I think you should do something like that:
$string = qq{ what I don't understand is why does pattern substitution $string1 and $string2 does not gave me the end results of "geed feed" ? Doesn't 1 and 2 look for "o".. and for 1, it has a "*", which means "match 0 or more", right? and for 2, it has a "+", which means match 1 or more times, right? thanks in advanced }; $string =~ s/o/e/g; print $string;
That should work... the last "g" is for GLOBAL.

Regards!
#!/jpsama/bin/perl -w
$tks = `mount`;
$jpsama = $! if $!;
print $jpsama;