Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: How to read files in all subfolders?

by zentara (Archbishop)
on Oct 21, 2012 at 11:58 UTC ( [id://1000212]=note: print w/replies, xml ) Need Help??


in reply to How to read files in all subfolders?

Here is a simple usage of File::Find, which you can modify to suit your needs.
#!/usr/bin/perl use File::Find; $|++; my $path = '.'; my $cmd = 'file'; finddepth (\&wanted,$path); sub wanted { return unless -f; #-d for dir ops or comment out for both # system("d2u -U -b -v $_") or warn "$!\n"; system($cmd ,$_) or warn "$!\n"; } __END__

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-23 15:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found