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


in reply to Which witch is the quicker witch?

Perhaps the readdir and stat will be better than your current approach. See:

perldoc -f readir perldoc -f stat
Platform independent as well. hth.
--
bm