in reply to Pattern Substitution..
I think you should do something like that:
Regards!
That should work... the last "g" is for GLOBAL.$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;
Regards!
#!/jpsama/bin/perl -w $tks = `mount`; $jpsama = $! if $!; print $jpsama;
|
---|
In Section
Seekers of Perl Wisdom