application/x-perl vs text/x-perl
David Faure
dfaure at klaralvdalens-datakonsult.se
Thu Apr 10 16:03:23 BST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 10 April 2003 16:42, Scott Wheeler wrote:
> On Thursday 10 April 2003 16:39, Clarence Dang wrote:
> > Hi,
> >
> > Does anyone know the difference between these 2 mimetypes? A "Perl
> > Program" is also a "Perl Source File" after all...I don't see the need for
> > a distinction between the two, nor the distinction itself.
> >
> > And to make things worse, they have overlapping patterns:
> > application/x-perl: Patterns=*.pl;*.perl;
> > tex/x-perl: Patterns=*.pl;*.pm;
>
> The key is in the last line. .pm == Perl Module != Perl program. A .pl is
> often also a Perl 4 style collection of fucntions with no "main". So,
> potentially these two could be consolidated into "Perl Source File" but not
> the other way around.
Yes but we definitely can't have the same pattern (*.pl) in two mimetypes.
The shared mime database on freedesktop.org only defines application/x-perl BTW:
freedesktop.org.xml: <mime-type type="application/x-perl">
with
<glob pattern="*.pl"/>
<glob pattern="*.perl"/>
(and magic looking at the first line)
*.pm could be application/x-perl-module IMHO.
- --
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+lYe772KcVAmwbhARAtzkAJ9pajQB2QLWuJDdn/Vf8Z3nMMHl+gCdHhv1
Zrf0kpbJJorcPsb8ZP4ZtDc=
=XmtO
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list