use strict; use warnings; $thisdir.'/'.$entrey could be written "$thisdir/$entry"