Perl examples
The Perl source distribution comes with some sample
scripts in the eg/ subdirectory. Feel free to
browse among them and use them. They are not installed
automatically, however, so you need to copy them to the
appropriate directory and possibly fix the #!
line to point to the right
interpreter.
The files in the t/ and lib/ subdirectories, although arcane in spots, can also serve as examples.
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.