Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: search for a pattern in file without opening the file (mem efficient)

by ikegami (Patriarch)
on Jan 30, 2007 at 22:51 UTC ( [id://597459]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use File::Glob qw( bsd_glob );
    
    ...
    # Output
    print("$_\n")
       foreach @matching_files;
    
  2. or download this
    use File::Glob qw( bsd_glob );
    
    ...
    # Output
    print
       foreach @matching_lines;
    
  3. or download this
    use File::Glob qw( bsd_glob );
    
    ...
    # Output
    print($_->[0], ',', $_->[1], ': ', $_->[2])
       foreach @matches;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-04-19 08:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found