From: Jacob Fugal Date: 2005-09-10T04:04:16+09:00 Subject: Re: [QUIZ] NDiff (#46) On 9/9/05, Jim Freeze wrote: > Hi > > To help the quiz writers focus on the 'the quiz' and not the administrative > part of the code and to help promote CommandLine, here is a little snippet > that some may find useful to get started. Thanks, Jim! I'd actually been trying to use CommandLine::Application, but was having some problems. Comparing what I had against this let me see where my problems were. > A little note, I did not understand "just exit code" for -q. What is > '-q' supposed > to do. No output at all? Yes, as in "no output to STDOUT". But there is output: the exit code. This is a common feature of many unix tools (e.g. diff[1], grep). It allows the tool to be used in a boolean environment during shell scripting. An exit code of 0 means there was no difference (within tolerance), and a non-zero exit code means there was a difference. Jacob Fugal