Hello Experts,
i have to list out all the files from a directory, but i also want to exclude files which has _ACK_ in it. I have created simple sub as below which can list all the files but i am not getting how can i exclude
sub GetDirFiles { my ($path) = @_; opendir DIR, $path or die $!; my @files = readdir DIR; closedir DIR; return(@files); }
is it possible? if yes. could someone please help me with this
In reply to ignore list of files using readdir function by kaka_2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |