Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Recursive file search

by Miguel (Friar)
on Feb 20, 2005 at 15:34 UTC ( #432873=note: print w/replies, xml ) Need Help??


in reply to Recursive file search

Another alternative:
#!/usr/bin/perl -w use strict; use IO::All; my @files; for ( io('.')->All ) { push @files, $_ if $_ =~/.*\.xml$/i; }

I spent 22 seconds to read 33721 files/directories on a PIV 1.7 with 256Mb RAM

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://432873]
help
Chatterbox?
Discipulus 3 earthquake between 5.1 and 5.3.. Closed the subway in roma and many schools evacuated: the school of my little daugther was evacuated.. but nobody called us..

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2017-01-18 11:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (161 votes). Check out past polls.