This is a really simple question, but I cann't seem to make the translation from sed -> perl? All I'm trying to do is convert:
s/oh/Ohio/g into Perl.
Reading a file containing state names in from the command line. (i.e. perl -w states.pl states.dat >states.db): Here's what I tried:
Thanks, Davidwhile (<>){ s/oh/Ohio/g; }
In reply to Win32: sed -Perl by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |