in reply to Re: Perl List files in directory
in thread Perl List files in directory
I found the answer:
@files = grep {-f "$dir/$_" && m/.xml/} readdir DIR;
Thanks for the help people
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl List files in directory
by Anonymous Monk on Apr 22, 2014 at 15:36 UTC | |
by Anonymous Monk on Apr 24, 2014 at 14:22 UTC | |
by Corion (Patriarch) on Apr 24, 2014 at 14:31 UTC | |
by Anonymous Monk on Apr 24, 2014 at 14:33 UTC |