Saturday, January 20, 2007

Rosemary's Perl

*nix like environments are a funny thing. There are different tools (really, languages) for doing different things, and which one you reach for differs by context. One of the things that I never seem to learn is that just about anything I write is going to grow, eventually, and I should just start with SCSH and be done with it. But, no, BASH it is. Anyway, tucked away at the top of a growing file deployment script is

function die () {
echo $@
exit 1

and, later

test -d $ns || die "Directory $ns does not exist."

I have just birthed a little Perl demon baby...


Post a Comment

<< Home