perl -pi~ -e 's/oh/Ohio/g';
Try reading perlre and perlrun
(pay special attention to -i),
they ought to give a thorough explanation
of what goes on there. Suffice it to say
-p makes perl act like a stream editor (sed).
UPDATE: To clarify that doesn't make perl
act like *the* sed though.