Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by ikegami (Pope)
on Jan 30, 2007 at 22:51 UTC ( #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
Node Status?
node history
Node Type: note [id://597459]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2014-12-28 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls