in reply to directory list
Or you could glob the whole directory and then assume anythat was a file was an image... using -f as your check:my @images = map {glob} ( '*.gif', '*.jpg', '*.jpeg' );
my @files = grep { -f } glob '*'; # warning! some elements in @files might not be images.
|
|---|