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

Re: PERL File Manipulation

by tos (Deacon)
on Jul 11, 2003 at 08:59 UTC ( #273294=note: print w/replies, xml ) Need Help??


in reply to PERL File Manipulation

here one possible perl approach for your problem. But regard what Abigail-II mentioned about the I/O-bottleneck.

use strict; use warnings; opendir (D,"."); #current working directory while (my $f = readdir(D)) { next unless -T $f; #only textfiles print $f,"\n"; open (F, $f); while (<F>) { print; } }
greetings, tos

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2021-01-23 04:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?