@jpgs = glob("/path/to/images/*.jpg"); @big_jpgs = grep { -s $_ > 100000 } glob("/images/*.jpg");