in reply to Re^2: list files based on age and pattern
in thread list files based on age and pattern
That is, because you are doing closedir before readdir. If you were running under use warnings;, Perl would have given you an error message like
readdir() attempted on invalid dirhandle $dh at test-m.pl line 5.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: list files based on age and pattern
by kaka_2 (Sexton) on Sep 16, 2013 at 13:56 UTC | |
by hdb (Monsignor) on Sep 16, 2013 at 14:28 UTC |