http://www.perlmonks.org?node_id=483119


in reply to Find all JPEG files in a directory

I know you want to do this a perl-ish way, but such a task could be just as easily be done from the command line -  find . | grep jpg