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
Suggestion: Use Perl regular expressions and replacements instead of grep or sed.
It's approximentally the same syntax, but more powerful. Also in the end it will be more efficient than invoking the extra sed process.