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' );
In reply to Re^2: Perl List files in directory (find/rule)
by Anonymous Monk
in thread Perl List files in directory
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |