.t Perl script

Text & source code

MIME typeapplication/x-perl
text/troff
DescriptionPerl script
CategoryText & source code
Signature (magic bytes)0A 3D 68 65 61 64 31 20 4E 41 4D 45 (.=head1 NAME)
0A 3D 70 6F 64 (.=pod)
42 45 47 49 4E 20 7B (BEGIN {)
Based onapplication/x-executable, text/plain
Other extensions.al, .perl, .pl, .pm, .pod

Frequently asked questions

What is a .t file?

The .t extension is used for several formats: Perl script (application/x-perl) and Troff document (text/troff).

How do I open a .t file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .t file?

By the bytes at the start of the file, the signature (magic bytes): 0A 3D 68 65 61 64 31 20 4E 41 4D 45 (.=head1 NAME), 0A 3D 70 6F 64 (.=pod) and 42 45 47 49 4E 20 7B (BEGIN {). On Linux and macOS, file --mime-type example.t checks the real type regardless of the extension.

Which format is .t based on?

Technically a .t file is a subtype of “Executable” (application/x-executable), so programs for that base format can often read it too.

Which MIME type belongs to .t?

The MIME type is application/x-perl. In the Apache web server: AddType application/x-perl .t; in nginx: types { application/x-perl t; }.

Nearby entries