.pl Perl-Skript
Text & Quellcode
| MIME-Typ | application/x-perl |
|---|---|
| Beschreibung | Perl-Skript |
| Kategorie | Text & 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 auf | application/x-executable, text/plain |
| Weitere Endungen | .al, .perl, .pm, .pod, .t |
Häufige Fragen
Was ist eine .pl-Datei?
Eine .pl-Datei ist ein Format vom Typ „Perl-Skript“ (MIME-Typ application/x-perl).
Womit öffne ich eine .pl-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 .pl-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.pl den tatsächlichen Typ unabhängig von der Endung.
Auf welchem Format basiert .pl?
Technisch ist eine .pl-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 .pl?
Der MIME-Typ ist application/x-perl. Im Apache-Webserver: AddType application/x-perl .pl; in nginx: types { application/x-perl pl; }.