in reply to Procesing directories
use File::Find; find(\&wanted, '.'); # execute &wanted for each file descending from + . sub wanted { print $File::Find::name, "\n" if /\.jpe?g$/i; } [download]