I managed to get it working with open dir, i placed the files under a new directory.
the problem is that now I'm getting everything, even sub-directories and i only want the xml files
opendir(dir, new_dir) or die "Cannot open dir : $!"; @files = grep {"*.xml"} readdir DIR;
can someone tell me what i'm missing?
In reply to Re: Perl List files in directory
by Anonymous Monk
in thread Perl List files in directory
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |