Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Printing the Contents of Multiple Text Files from a Directory

by cjf (Parson)
on Jun 16, 2002 at 16:21 UTC ( #174932=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    opendir DIR, "./" or die "Can't open: $!";
        my @files = grep { /\.txt\z/ } readdir DIR;
    closedir DIR;
    
  2. or download this
    print "Content-type: text/html\n\n";
    
    ...
            print $_;
        }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://174932]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2018-01-19 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (218 votes). Check out past polls.

    Notices?