All apps/Perl

Perl

perl

Perl is a highly capable, feature-rich programming language with over 38 years of development.

Runs as perl, cpan|macOS, Linux|www.perl.org

Command form

ai-draft · 3 tasks · 12 fields

Run a script or a one-liner, or check syntax. Debugger, Unicode (-C) and taint switches are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui perl
Run PerlExample values, fixed in this page — nothing here reaches a terminal
Basic
Script file*
file
Arguments or input files
any
Enable warnings
-w
TasksEach one presets the form for one job
Run a script
scriptargswarnings
Filter lines with a one-liner
one_linerloop_pargs
Check script syntax
scriptsyntax_check
ParametersOnly these flags are editable in the form
One-line program (-e)
string
-e
One-line program with all features (-E)
string
-E
Loop over input lines (-n)
boolean
-n
Loop and print each line (-p)
boolean
-p
Autosplit into @F (-a)
boolean
-a
Line-ending processing (-l)
boolean
-l
Edit files in place (-i)
Without a backup extension; files are overwritten.
boolean
-i
Check syntax only
boolean
-c
Enable warnings
boolean
-w
Extra @INC directory
path · repeatable
-I
Script file
path · positional 0
Arguments or input files
path · positional 1 · repeatable
SourcesEvery flag above is checked against these
help
Usage: perl [switches] [--] [programfile] [arguments] -a autosplit mode with -n or -p (splits $_ into @F) -c check syntax only (runs BEGIN and CHECK blocks) -e commandline one line of program (several -e's allowed, omit programfile) -E commandline like -e, but enables all optional features -F/patt…
helpperl -h (local)

Before it fills your prompt, Otty checks the installed perl against its version. A form that does not match your version is not offered.