Requalifies this object into the given mimetype.
Returns the File subclass that goes well with the given mimetype. This is a Class method.
You can also give a file name to make the diagnostic easier in case no class is found.
Usage:
my $class = App::CSE::File->class_for_mime('application/x-perl'); my $class = App::CSE::File->class_for_mime('application/x-perl' , 'the/file/name.something');
App::CSE::File - A general file
Effective Object. Some classes can choose to return something different.
To install App::CSE, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::CSE
CPAN shell
perl -MCPAN -e shell install App::CSE
For more information on module installation, please visit the detailed CPAN module installation guide.