Tooling and the outside world
This part is the toolchain around a Perl program: tests with Test::More and prove, strict and warnings, Getopt::Long options, the environment, external processes, and the one-liners that replace a small script.
7.1
Testing with Test::More
the right assertion for the check, a t folder, and the suite run with prove
Open
7.2
strict, warnings and diagnostics
make Perl report a mistake early, read the message, and check code before it runs
Open
7.3
Options with Getopt::Long
flags, values, counters and repeatable options, positional arguments, and a --help page
Open
7.4
Environment and %ENV
read and change a variable, default an option from it, split PATH, and keep a secret out of the process list
Open
7.5
system, backticks and pipes
run a program, capture its output, decode the exit status, and stay away from the shell
Open
7.6
One-liners with -n and -p
filter a log with perl -ne, sum a column, edit in place with -i, and the pitfalls that lose data
Open