Closed dervikxx closed 5 days ago
Where https://perldoc.perl.org/functions/readdir
Description incorrect first example, array will be all time empty - grep { /^\./ && -f "$some_dir/$_" }
grep { /^\./ && -f "$some_dir/$_" }
The example is trying to find files starting with a .. The code accomplishes that. Why do you think that the array would be empty?
.
The example works and no response from the OP, closing.
Where https://perldoc.perl.org/functions/readdir
Description incorrect first example, array will be all time empty -
grep { /^\./ && -f "$some_dir/$_" }