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

rupesh has asked for the wisdom of the Perl Monks concerning the following question:

Given a path... say,
c:\mypath\myfile and
c:\mypath
, how would one identify whether it is a directory or a file?... Seems rather simple, but couldn't figure a way out...
Any suggestions would do.
THanks...Rupz.

Plz. could anyone also help on my earlier request? node:250821? THanks!!!


we're born with our eyes closed and our mouths wide open, and we spend our entire life trying to rectify that mistake of nature. - anonymous.