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


in reply to Re^2: how to Check file type?
in thread how to Check file type?

Thanks, that was basically (however inelegantly) what I was trying to accomplish. Printing was just for demonstration purposes.