Free · No signup
Perl Tutorial
Learn Perl from the ground up. Every code example on every lesson is real and runnable — the output shown was captured from an actual execution on this site's own compiler, not typed by hand — and you can try each one yourself with one click.
- 1Introduction to Perl
- 2Your First Perl Program
- 3Scalars and Variables
- 4Strings
- 5Numbers and Operators
- 6Arrays
- 7Control Flow
- 8Loops and foreach
- 9Hashes
- 10Context
- 11Subroutines
- 12Regular Expressions
- 13References
- 14Complex Data Structures
- 15List Processing with map, grep, and sort
- 16File Handling
- 17Error Handling
- 18Closing Thoughts
More lessons are added regularly. Want to practice outside the tutorial? Open the Perl compiler. Prefer Kotlin? Read the Kotlin tutorial. Prefer Swift? Read the Swift tutorial. Prefer Java? Read the Java tutorial. Prefer C#? Read the C# tutorial. Prefer C++? Read the C++ tutorial. Prefer C? Read the C tutorial. Prefer Rust? Read the Rust tutorial. Prefer Go? Read the Go tutorial. Prefer TypeScript? Read the TypeScript tutorial. Prefer JavaScript? Read the JavaScript tutorial. Prefer Python? Read the Python tutorial. Prefer Bash? Read the Bash tutorial. Prefer Ruby? Read the Ruby tutorial. Prefer R? Read the R tutorial. Prefer PHP? Read the PHP tutorial. Prefer Hindi? Hindi mein padhein. Prefer Urdu? Roman Urdu mein parhein. ¿Prefieres español? Leer en español. Prefere português? Ler em português.