The Praying Mantis of Israel.pm

scripting best practices

By Dotan Dimet from telaviv.pm
Date: Monday, 25 February 2013 15:00
Duration: 20 minutes
Target audience: Any
Language: עברית
Tags: app::rad command line scripts


Perl excels at scripting (particularly in its native UNIX environment), that is producing "simple" command line programs that take some input and produce some output. But even without dealing with GUI or the Web, things can get complicated, and we often struggle to find any guidelines to how to construct a good command line program.

In this talk I'll discuss command line switches, argument parsing, input and output, logging, running the background and available libraries and frameworks for building scripts as well as common sense good practices.

I will, of course, draw heavily on my own bad examples to infer correct behavior from my misdeeds.

Attended by:

Copyright © 2007-2013 Israeli Perl Mongers, Perl Foundation