Thread map + readdir (18 answers)
Opened by roooot at 2009-04-15 22:34

Gast wer
 2009-04-15 23:16
#120620 #120620
Code (perl): (dl )
1
2
3
opendir my $LOGDIR, qq{./+logs/~$uid} or die "$!";
my @logs = map { !m/^\./ ? s/\.log// : () } readdir($LOGDIR);
closedir($LOGDIR);

View full thread map + readdir