in reply to Re: File types not being picked up by script
in thread File types not being picked up by script
Hi, by pick up I mean to say that, the code finds all of the directories and files correctly, except the ones I listed that it does not.
I dont have the join(':',stat $_) in my code.
As per your comment, I have added the code below on how I set the @files
``````my @files; my $path = shift; opendir (DIR, $path) or die "Unable to open $path: $!"; my @files = # Third: Prepend the full path map { $path . '\\' . $_ } # Second: take out '.' and '..' grep { !/^\.{1,2}$/ } # First: get all files readdir (DIR); closedir (DIR);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: File types not being picked up by script
by Marshall (Canon) on Jul 07, 2025 at 07:21 UTC | |
by MShoaib (Initiate) on Jul 07, 2025 at 22:03 UTC |