kaka_2 has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|