I know how to use sed with grep, but within Perl the below fails. How can one get sed to work within a Perl program?
sed
grep
c
I'm surprised that nobody mentioned the s2p utility, which translates sed "scripts" (you know, most of the time oneliners) to valid perl. (And there's an a2p utility for awk too...)