The glob() function will tack the file name onto the path specified for the search directory, and it will skip hidden files that start with a dot:
use strict; use warnings; use 5.010; my @files = glob "/users/me/*"; for (@files) { say; } --output:-- /users/me/066.JPG /users/me/069.JPG /users/me/072.JPG /users/me/077.JPG /users/me/079-1.JPG /users/me/079.JPG /users/me/081-1.JPG /users/me/081.JPG /users/me/1.txt /users/me/1perl.pl ... ...
In reply to Re: Tricky regexp
by 7stud
in thread Tricky regexp
by riceboyyy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |