Path: utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!swrinde!emory!mephisto!mcnc!uvaarpa!mmdf From: worley@compass.com (Dale Worley) Newsgroups: comp.lang.perl Subject: Counting characters with unix utilities Message-ID: <1990Sep25.151014.11935@uvaarpa.Virginia.EDU> Date: 25 Sep 90 15:10:14 GMT Sender: mmdf@uvaarpa.Virginia.EDU (Uvaarpa Mail System) Reply-To: worley@compass.com Organization: The Internet Lines: 11 X-Name: Randal Schwartz perl -ne '$c += tr/A/A/; print $c if eof;' file Doesn't this fail if the file is empty? Dale Worley Compass, Inc. worley@compass.com -- Using MS-DOS on a '386 is like using a Formula 1 race car to do your grocery shopping.