Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by hippo (Bishop)
on Nov 25, 2021 at 10:34 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-25 11:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found