No errors, it's just not printing anything out. Any idea why?
#!/usr/bin/perl use warnings; use strict; my $dir = "."; opendir(DIR, $dir) || die "can't opendir $dir: $!"; my @dots = grep { /^\./ } readdir(DIR); closedir DIR; print join("\n", @dots);
In reply to reading all files in a dir by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |