MojoX::Types - Types
use MojoX::Types; my $types = MojoX::Types->new;
MojoX::Types is a container for MIME types.
MojoX::Types implements the following attributes.
types
my $map = $types->types; $types = $types->types({png => 'image/png'});
MojoX::Types inherits all methods from Mojo::Base and implements the follwing the ones.
type
my $type = $types->type('png'); $types = $types->type(png => 'image/png');
To install Mojo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojo
CPAN shell
perl -MCPAN -e shell install Mojo
For more information on module installation, please visit the detailed CPAN module installation guide.