in reply to sed in perl

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.