.perl Perl-Skript

Text & Quellcode

MIME-Typapplication/x-perl
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, .pl, .pm, .pod, .t

Häufige Fragen

Was ist eine .perl-Datei?

Eine .perl-Datei ist ein Format vom Typ „Perl-Skript“ (MIME-Typ application/x-perl).

Womit öffne ich eine .perl-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 .perl-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.perl den tatsächlichen Typ unabhängig von der Endung.

Auf welchem Format basiert .perl?

Technisch ist eine .perl-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 .perl?

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

Benachbarte Einträge