in reply to Re: Perl List files in directory
in thread Perl List files in directory
1st recommandation should be File::Find. In your case
Are you sure about that? Because that doesn't have /opt/tmp or @files
My first recommendation is always File::Find::Rule
use File::Find::Rule qw/ rule find /; my @files = find( file => maxdepth => 1, ascii => in => '/opt/tmp' );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl List files in directory (find/rule)
by bigj (Monk) on Apr 22, 2014 at 11:32 UTC | |
by Anonymous Monk on Apr 22, 2014 at 13:13 UTC |