The main benefits of not shelling out are a performance and safety improvements: A single Perl process usually works much faster than Perl calling a shell calling grep etc. And as variables are real variables in Perl (while in the shell, we only have simple expanding macros), you don't need to worry about whitespace or quotes in their values.
In reply to Re: sed/awk/grep to Perl
by choroba
in thread sed/awk/grep to Perl
by aartist
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |