Perl — Command Reference
Perl's most used commands — the powerful language of text processing and scripting. Each with an explanation and a working example.
6 categories · 10 commands
🖥️
Output
Printing with print and embedding values into text.
print📦
Variables
Sigils: $ (scalar), @ (arr), % (hash).
my $ / @ / %✍️
Text & Number
String functions and arithmetic.
length / uc / substrArithmetic ( + - * / % ** )📋
Array & Hash
Arrays (@) and hashes (%).
Array (@)Hash (%)🔁
Condition & Loop
if, foreach and while.
if / elsif / elseforeach / forwhile🧩
Function (sub)
Subprogram definition.
sub