Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Using system (); with Strawberry Perl

by hippo (Bishop)
on Nov 25, 2021 at 10:34 UTC ( #11139114=note: print w/replies, xml ) Need Help??


in reply to Re: Using system (); with Strawberry Perl
in thread Using system (); with Strawberry Perl

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.


🦛

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11139114]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2022-05-20 08:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (73 votes). Check out past polls.

    Notices?