.PLX

PLX File

Perl Executable Script
Ask a question
QUICK ANSWER

A PLX file is a Perl script - plain-text source code written in the Perl language, historically used to mark the file as a runnable program or CGI script. To read or edit it, open it in any text editor. To run it on Linux or macOS, type "perl script.plx" in a terminal (Perl is preinstalled). On Windows, install Strawberry Perl first.

Developer: Larry Wall / The Perl Foundation (Perl language) Category: Developer Files Open standard MIME: application/x-perl
OPENS ON Windows macOS Linux
Related: .DO · .MD · .HEX · .XSD

On this page

19k+ extensions indexed
Last reviewed Jul 3, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the PLX file format?

.plx is a Perl executable script - a plain-text source file written in the Perl programming language, intended to be run directly by the perl interpreter. It is functionally identical to a .pl file; the .plx extension was adopted as a convention to mark a Perl file as an executable program or CGI script, as opposed to a library (.pl) or module (.pm).

A .plx script typically opens with a shebang line such as #!/usr/bin/perl, followed by pragmas (use strict;, use warnings;), module imports, subroutines, and executable statements the interpreter runs top-to-bottom. Because it is plain text, any text editor can read or modify it; no compilation step is required - the perl binary parses and executes it directly.

The .plx naming convention became popular on web servers in the 1990s-2000s as a way to distinguish executable CGI scripts from passive library files: some server configurations were set to execute only .plx or .cgi files, refusing to serve their source to browsers. On Windows, .plx was registered as a file association by ActivePerl (now Strawberry Perl) to launch the interpreter on double-click.

Today the plain .pl extension dominates; .plx is largely a historical artefact of early CGI web-hosting conventions, though older scripts still circulate with the extension.

Security & safety

RISK: MEDIUM

A .plx is executable source code: running one executes whatever it contains with your permissions - it can read/write files, make network calls, or delete data. Never run a .plx from an untrusted source without reading it first (it's plain text, so you can). Legacy CGI .plx scripts on web servers are a classic attack surface; keep Perl and modules patched and validate input. Reading/editing the file is safe; executing it is the risk.

Format details

in a nutshell
FULL NAMEPerl Executable Scriptaka Perl script, Perl CGI script
DEVELOPERLarry Wall / The Perl Foundation (Perl language)since Convention alongside Perl (Perl 1.0, 1987); .plx popularized as a CGI/executable Perl extension
MIME TYPEapplication/x-perl
TYPEPlain-text Perl source script (executable program)
STANDARDOpen · royalty-free
This extension is also used by…
  • Oracle Forms / PL/SQL compiled library (.plx) - Oracle Forms produces .plx platform-specific compiled PL/SQL library files - a binary, unrelated to Perl scripts.
  • Pinnacle Studio / video project & misc app files - A few applications reuse .plx for their own data/project files, unrelated to Perl.
MAGIC BYTES · FILE SIGNATURE
OFFSET
0001
HEX
2321
ASCII
#!
Plain text. Like .pl, a .plx script usually begins with a shebang line such as "#!/usr/bin/perl" (hex 23 21 ...). The .plx variant was used to flag a Perl file as an executable program/CGI (as opposed to a .pl library/module), especially on web servers. No binary signature; identify by the shebang and Perl syntax (use strict; my $x = ...).

Programs that open PLX files

Windows3 apps
Notepad Open-source Open the .plx as text to read or edit the Perl source; pair with Strawberry Perl to run it.
Strawberry Perl Open-source Install Strawberry Perl, then run perl script.plx in a terminal; it bundles a full Perl + CPAN toolchain for Windows.
Visual Studio Code Free Open the .plx to read/edit it (Perl syntax highlighting via an extension); run via the integrated terminal with perl installed.
macOS1 app
Terminal + system Perl Open-source macOS ships Perl: run perl script.plx in Terminal, or open in any editor to read it.
Linux1 app
Perl (preinstalled) + any editor Open-source Run perl script.plx (Perl is standard on most distros), or chmod +x then ./script.plx; edit in vim/VS Code/gedit.

Technical details

deep spec
Format typePlain-text Perl source script (executable program)
DeveloperLarry Wall / The Perl Foundation (Perl language)
EncodingASCII or UTF-8 (use utf8; pragma enables Unicode source)
Typical sizeA few hundred bytes to tens of KB (single script)
Associated OSLinux, Unix, macOS, Windows (via Strawberry Perl or ActivePerl)
MIME typeapplication/x-perl (also text/x-perl)
ShebangTypically #!/usr/bin/perl on line 1 (hex 23 21); enables direct execution on Unix/Linux
InterpreterRun by the perl binary (Perl 5.x); no compilation step required
Distinction from .pl.plx flags the file as an executable/CGI entry point; .pl is used for libraries and general scripts; .pm for modules
CGI useHistorically used on web servers configured to execute only .plx or .cgi files, blocking source code exposure
Windows associationActivePerl/Strawberry Perl registers .plx to launch the Perl interpreter on double-click
Current statusLargely historical; the plain .pl extension dominates in modern Perl codebases
ReleasedConvention alongside Perl (Perl 1.0, 1987); .plx popularized as a CGI/executable Perl extension
Latest versionTracks the installed Perl interpreter (Perl 5.x; Perl 7 planned)
Open standardYes · royalty-free
Specificationwww.perl.org

PLX conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with PLX files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about PLX files.

Frequently asked questions

What is a PLX file?
It's a Perl script - plain-text Perl source meant to be executed (the 'x' historically marked it as a runnable/CGI Perl file). It's run by the Perl interpreter. (Oracle Forms also uses .plx for a different, binary PL/SQL library.)
How do I open a PLX file?
To read or edit it, open it in any text editor (VS Code, Notepad++, vim). To run it you need Perl: 'perl script.plx' on Linux/macOS (preinstalled), or install Strawberry Perl on Windows.
How do I run a PLX script on Windows?
Install Strawberry Perl (free), open a terminal, and run perl script.plx. Read the script first if you didn't write it.
What's the difference between PLX, PL and PM?
All are plain-text Perl. .plx was used for an executable/CGI Perl program, .pl for a generic script/library, and .pm for a Perl module (library). The same perl interpreter runs them.
Is PLX the same as PL/SQL?
No. The Perl .plx here is a text script. Oracle Forms separately produces a .plx that is a compiled, binary PL/SQL library - a different format that won't open as readable text.
Can I convert a PLX to an EXE?
Yes - bundle it into a standalone Windows executable with PAR::Packer (pp) or Perl2Exe. That packages the Perl interpreter with your script; it doesn't compile Perl to native code.

References

1Perl - official sitewww.perl.org
2Strawberry Perl - Perl for Windowsstrawberryperl.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.EXEWindows Executable (Portable Executable)
5.M4AMPEG-4 Audio File
6.DATProgram Data File (generic)
7.MDMarkdown Document
8.JSONJavaScript Object Notation file
9.JPGJPEG Image
10.NOMEDIAAndroid No-Media Marker File

Related extensions

.DOStata Do-File
.MDMarkdown Document
.HEXIntel HEX File
.XSDXML Schema Definition
.MAPSource Map (JavaScript / CSS)
.CONFIGConfiguration File

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z