Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!samsung!xylogics!merk!millipore!blu From: blu@millipore.com (Brian Utterback) Newsgroups: comp.lang.perl Subject: PERL Novice needs help. Message-ID: <1991Jan7.205909.674@millipore.com> Date: 7 Jan 91 20:59:09 GMT Organization: Millipore Corporation Lines: 31 Okay perl hackers, I need your help. I have oft'times seen it written that if you are iterating over a variable you are probably doing it wrong in perl. So, I need an alternate approach since the one I thought of is abysmally slow. I am processing some raw grey-scale image, 8 bits per value. There are X scanlines of Y pixels each. What I want is to tally the values into a histogram and produce the hex dump of the values, but with the image scaled down to a third it's original size. So in loose perl I have the following: for (x=0;x