2 ms·
What you said, but really once you've started Perl there's no reason to go back to sed or awk. Any program you ever want to distribute has to have some decent e
by emmelaich 12y ago
What you said, but really once you've started Perl there's no reason to go back to sed or awk.
Any program you ever want to distribute has to have some decent error handling and option and arg parsing and that precludes them both.
Even when I think in sed or awk, I'll generally write in Perl; or, if I have an old awk script I'll use a2p to convert it.
a2p (awk to perl), s2p (sed to perl) and find2perl (find to perl) are all excellent ways to get you into Perl.
Nowadays my preferred language for almost anything is Python, but I still find myself writing Perl for some throwaways.