usr bin perl -wl use strict use File Glob glob my confdir etc lighttpd

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#!/usr/bin/perl -wl
use strict;
use File::Glob ':glob';
my $confdir = "/etc/lighttpd/";
my $enabled = "conf-enabled/*.conf";
chdir($confdir);
my @files = bsd_glob($enabled);
for my $file (@files) {
print "include \"$file\"";
}