Email::MIME::ContentType - Parse a MIME Content-Type Header
use Email::MIME::ContentType; my $ct = "Content-Type: text/plain; charset="us-ascii"; format=flowed"; my $data = parse_content_type($ct); $data = { discrete => "text", composite => "plain", attributes => { charset => "us-ascii", format => "flowed" } }
This module is responsible for parsing email content type headers according to section 5.1 of RFC 2045. It returns a hash as above, with entries for the discrete type, the composite type, and a hash of attributes.
parse_content_type
Casey West, casey@geeknest.com Simon Cozens, simon@cpan.org
casey@geeknest.com
simon@cpan.org
Perl Email Project, pep@perl.org.
pep@perl.org
Email::MIME
To install Email::MIME::ContentType, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Email::MIME::ContentType
CPAN shell
perl -MCPAN -e shell install Email::MIME::ContentType
For more information on module installation, please visit the detailed CPAN module installation guide.