.t Perl-Skript

Text & Quellcode

MIME-Typapplication/x-perl
text/troff
BeschreibungPerl-Skript
KategorieText & Quellcode
Signatur (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 {)
Basiert aufapplication/x-executable, text/plain
Weitere Endungen.al, .perl, .pl, .pm, .pod

Häufige Fragen

Was ist eine .t-Datei?

Die Endung .t wird für mehrere Formate verwendet: Perl-Skript (application/x-perl) und Troff-Dokument (text/troff).

Womit öffne ich eine .t-Datei?

Mit jedem Texteditor – etwa Notepad++, Visual Studio Code oder unter Linux gedit und vim. Die Datei enthält lesbaren Text, ggf. Quellcode oder Konfiguration.

Woran erkennt man eine echte .t-Datei?

Am Dateianfang, der sogenannten Signatur (Magic Bytes): 0A 3D 68 65 61 64 31 20 4E 41 4D 45 (.=head1 NAME), 0A 3D 70 6F 64 (.=pod) und 42 45 47 49 4E 20 7B (BEGIN {). Unter Linux und macOS prüft file --mime-type example.t den tatsächlichen Typ unabhängig von der Endung.

Auf welchem Format basiert .t?

Technisch ist eine .t-Datei ein Untertyp von „Ausführbare Datei“ (application/x-executable). Programme für dieses Grundformat können die Datei daher oft ebenfalls lesen.

Welcher MIME-Typ gehört zu .t?

Der MIME-Typ ist application/x-perl. Im Apache-Webserver: AddType application/x-perl .t; in nginx: types { application/x-perl t; }.

Benachbarte Einträge