Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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?
holli googles dryarian just to make sure that isn't actually thing
[holli]: I mean, you never know, right?
[shmem]: good $localtime monkses
[holli]: mmh. maybe a user handle "dry arian" is a bit unfortunate? https://www. pinterest.de/ dryarian/
[Discipulus]: exists!
[shmem]: holli, agreed. "dry airan" would be slightly better :P
[holli]: virtualsue: How much was left?
[shmem]: Discipulus: oh. tatsächlich.
shmem missed his monkday yesterday :P - 12 years and way to go...
[1nickt]: Happy Monkday shmem. I was at my stepson's birthday party and thought of you.

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (14)
As of 2017-11-21 12:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (301 votes). Check out past polls.

    Notices?