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

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

Is there any possibilities to find the file type without looking the extension. For example i have a PDF file without ".pdf" extension. How can i find what kind of file is this?