
Learn Perl - learn.perl.org
· Installing Perl - and setup guide · First program - and some basic best practices · Perl Modules - introduction · Examples - what can you do with Perl? · Perl documentation · Perl books · Frequently Asked Questions
Examples - learn.perl.org
These are just a few simple examples of what you can do with Perl modules. Email · Sending an email · Validate an email; Files · List contents of a directory · Reading and writing to file · Read a spreadsheet · Processing configuration files; Various · Setting up …
Perl Tutorials - learn.perl.org
Perl Tutorials. Many tutorials are available if you are interested in learning Perl. Please note that these tutorials are introductions. For reference material, please look at the perl documentation, either online or using the perldoc command (try perldoc perlintro). Beginning Perl. A comprehensive book by Simon Cozens, available free online.
Beginning Perl (free) - learn.perl.org
"There's more than one way to do it" is the motto of Perl, but this book aims to take you through them all. We'll take you from installation, through the core language elements - regular expressions, references, modules and the like - and onto basic applied techniques.
First steps - learn.perl.org
How to get started with your first Perl script After installing Perl you will want to actually run some Perl code. You need to use a command line ( Windows , macOS , Unix/Linux ) program to do this.
Installing Perl - learn.perl.org
Examples; Docs; Books; FAQ; Installing Perl. How to install Perl on Window, macOS and Unix/Linux. Installing Perl on Windows Get Started Installing Perl on macOS Get Started Installing Perl on Unix/Linux Get Started Perl.org; www;
Reading and writing a file with Perl - learn.perl.org
Use path() to create a Path::Tiny object for any file path you want to operate on, but remember if you are calling other Perl modules you may need to convert the object to a string using 'stringify': $file->stringify(); $dir->stringify();
Reading the contents of a directory - learn.perl.org
#!/usr/bin/perl use strict; use warnings; use Path::Tiny; my $dir = path('foo','bar'); # foo/bar # Iterate over the content of foo/bar my $iter = $dir->iterator; while (my $file = $iter->()) { # See if it is a directory and skip next if $file->is_dir(); # Print out the file name and path print "$file\n"; }
Perl modules - learn.perl.org
What is a Perl module? Perl modules are a set of related functions in a library file. They are specifically designed to be reusable by other modules or programs. There are 108,000 modules ready for you to use on the Comprehensive Perl Archive Network.
Sending an email with Perl - learn.perl.org
Other examples · Sending an email · Validate an email · List contents of a directory · Reading and writing to file · Read a spreadsheet · Processing configuration files · Setting up a local static web server · Resolving DNS