Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    MIME::Type 1.19

    Download button

    No screenshots available
    Downloads: 609  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Mark Overmeer | More programs
    Perl Artistic License / FREE
    June 1st, 2007, 10:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    MIME::Type description

    MIME::Type is a definition of one MIME type.

    MIME::Type is a definition of one MIME type.

    SYNOPSIS

    use MIME::Types;
    my $mimetypes = MIME::Types->new;
    my MIME::Type $plaintext = $mimetypes->type('text/plain');
    print $plaintext->mediaType; # text
    print $plaintext->subType; # plain

    my @ext = $plaintext->extensions;
    print "@ext" # txt asc c cc h hh cpp

    print $plaintext->encoding # 8bit
    if($plaintext->isBinary) # false
    if($plaintext->isAscii) # true
    if($plaintext->equals('text/plain') {...}
    if($plaintext eq 'text/plain') # same

    print MIME::Type->simplified('x-appl/x-zip') # 'appl/zip'

    MIME types are used in MIME entities, for instance as part of e-mail and HTTP traffic. Sometimes real knowledge about a mime-type is need. Objects of MIME::Type store the information on one such type.

    This module is built to conform to the MIME types of RFC's 2045 and 2231. It follows the official IANA registry at http://www.iana.org/assignments/media-types/ and the collection kept at http://www.ltsw.se/knbase/internet/mime.htp

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    MIME type | MIME definition | Perl module | MIME::Type | MIME | type

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM