File::MMagic

This module is used to guess file type from its contents like file(1)
command.