Almost exactly the same way you did it with sed, but you need to add a few switches:
haha=`echo $haha | perl -pe "s/tyre/tire/g"`
"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.
In reply to Re: sed in perl
by hardburn
in thread sed in perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |