PAR vs MIME::Types

[email protected] (Philip Gwyn)
Newsgroups perl.par
Message-ID <[email protected]>
Hello,

MIME::Types uses __FILE__ to locate it's data file (types.db).  This fails from
inside a PAR file, because of the #file 1 "MIME/Types.pm" that PAR adds.

I've filed a bug about this
    https://rt.cpan.org/Ticket/Display.html?id=104945

The author's reply is that this is a bug in PAR, not MIME::Types.

To me, all libraries should allow the caller to specify where to find data
files.

In fact File::ShareDir is a much better option then __FILE__ or %INC.

Anyone willing to weigh in on the argument?

-Philip
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.