Snips of useful Perl and PHP code