Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Puzzled by File::Find

by Khen1950fx (Canon)
on May 03, 2012 at 14:29 UTC ( #968752=note: print w/ replies, xml ) Need Help??


in reply to Puzzled by File::Find

To make it easier, use File::Find::Wanted. Here's a snippet that looks for all the files in /tmp:

#!/usr/bin/perl -l use strict; use warnings; use File::Find::Wanted; my $d = '/tmp'; my @files = find_wanted(sub { -f && /\./ }, $d); foreach my $file(@files) { print $file; }


Comment on Re: Puzzled by File::Find
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2013-06-19 04:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many continents have you visited?









    Results (642 votes), past polls