"be consistent" | |
PerlMonks |
Re^2: Using system (); with Strawberry Perlby hippo (Bishop) |
on Nov 25, 2021 at 10:34 UTC ( [id://11139114]=note: print w/replies, xml ) | Need Help?? |
A couple more lines of Perl code can emulate the exact grep -l functionality (stop reading the file when the first match is found). If you want the speed that grep -l would give you then have a look at List::Util::any instead. It has an XS version and is in Core. 🦛
In Section
Seekers of Perl Wisdom
|
|