Plack::MIME 

use Plack::MIME;

my $mime = Plack::MIME->mime_type(".png"); # image/png