use strict; use CGI (); use IO::Dir (); my $q = CGI->new; print $q->header("text/plain"); my $dir = IO::Dir->new("."); print join "\n", $dir->read;