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.
In reply to Re: directory list
by Adam
in thread directory list
by jmac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |