1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
6 <title>Unit Test: programlisting.003</title>
7 <releaseinfo role="CVS">$Id: programlisting.003.xml,v 1.2 2008-07-11 07:54:30 rt Exp $</releaseinfo>
8 <author><firstname>Norman</firstname><surname>Walsh</surname>
9 <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
13 <programlisting linenumbering="numbered">@rem = '--*-Perl-*--
15 perl.exe %_batchname %$
21 require 'n:/home/nwalsh/lib/cygnus.pl';
22 require 'timelocal.pl';
25 select (STDERR); $| = 1;
26 select (STDOUT); $| = 1;
28 @DIRS = ("/home/nwalsh/Mail");
32 while ($fname = readdir(DIR)) {
33 $file = "$dir/$fname";
35 next if $fname =~ /^\.\.?$/;
39 &compress ($file);
43 exit;</programlisting>