![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: sed/awk/grep to Perlby choroba (Archbishop) |
on Nov 09, 2020 at 15:15 UTC ( #11123529=note: print w/replies, xml ) | Need Help?? |
If they work and you have other urgent tasks, it's OK to leave them as they are. 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.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|