Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Find all JPEG files in a directory

by sh1tn (Priest)
on Aug 11, 2005 at 22:21 UTC ( #483144=note: print w/replies, xml ) Need Help??


in reply to Find all JPEG files in a directory

Sample subroutine:
use File::Find; ... sub _find_jpg { my @files; find( sub{ push @files, $_ if /\.jpg$/i }, @_ ); \@files; }


Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://483144]
help
Chatterbox?
[ambrus]: Corion: pre-fork before creating any threads
[ambrus]: it's good practice anyway, even if Linux tolerates forking after creating threads (tolerates, as in, the fork works, but other threads are dead which can lead to interesting deadlocks)
[marto]: could be worse, could be dust
[ambrus]: Corion: if you're forking from perl, then schmorp has a module that helps this prefork magic

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (14)
As of 2017-10-19 14:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (253 votes). Check out past polls.

    Notices?