"be consistent" | |
PerlMonks |
Re: perl to run awk and sedby runrig (Abbot) |
on Nov 30, 2015 at 21:08 UTC ( [id://1148967]=note: print w/replies, xml ) | Need Help?? |
If you want to convert awk or sed to perl, a2p and s2p can do that for you. You can use the results as is, or just get an idea of how to do something in perl. E.g. for your awk, a2p gives: s2p outputs more cruft, but the important bit is just 's/.$//', which can be inserted into the above script.
In Section
Seekers of Perl Wisdom
|
|