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


in reply to Distinguishing files from folders

You might also be interested in the slew of such operators that can make your life a lot easier.-X .