Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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?
[usemodperl]: greetings
[Corion]: marto: Oooh, great! I was on a one week vacation, and in hindsight we should've gone for 10 days or two weeks ;))
[Corion]: Hi usemodperl ;)

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2018-06-20 08:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (116 votes). Check out past polls.

    Notices?