Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!mcnc!uvaarpa!mmdf From: worley@compass.com (Dale Worley) Newsgroups: comp.lang.perl Subject: Improvements to inctree Message-ID: <1991Mar26.210339.12267@uvaarpa.Virginia.EDU> Date: 26 Mar 91 21:03:39 GMT Sender: mmdf@uvaarpa.Virginia.EDU (Uvaarpa Mail System) Reply-To: worley@compass.com Organization: The Internet Lines: 65 The following patch fixes three problems with the inctree program from chapter 6 of The Book: 1) It adds a usage message. 2) Lines that found with -m and output are indented with -'s, so you can tell which file they are from. 3) If the eval of $sub fails, it outputs the error message and stops. Dale Dale Worley Compass, Inc. worley@compass.com -- Artificial intelligence has failed, but natural stupidity is still going strong. -- John Pates *** /usr/sysmgr/mcmullan/perl/book-examples/ch6/inctree Tue Jan 8 12:57:24 1991 --- /home/worley/bin/inctree Tue Mar 26 15:37:00 1991 *************** *** 10,15 **** --- 10,29 ---- $shiftwidth = 4; + # Usage message + + if ($#ARGV < $[) { + print STDERR <