Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsh!ijk From: ijk@cbnewsh.att.com (ihor.j.kinal) Newsgroups: comp.lang.perl Subject: eval failures - in a commented line Keywords: cgrep, eval bug report Message-ID: <1991Jun21.194148.24804@cbnewsh.att.com> Date: 21 Jun 91 19:41:48 GMT Distribution: na Organization: AT&T Bell Laboratories Lines: 21 While trying to extend cgrep', I ran into an interesting problem. The eval part of the program failed [silently]. Since I had made a number of changes, I tried commenting them out, to no avail. Finally, by deleting lines, I determined the failure was within a commented line that had a print format: # print \$ary[\$ind], "\n"; By deleting the "\n", then program then seemed to work as before. Is this a bug, or what??? This is the latest PERL, on a HP 855. Thanks, Ihor Kinal att!cbnewsh!ijk [I'm just starting, so forgive me if this is dumb. NOTE: what I'm trying to do is to stop the context display if there are blank lines within the context:i.e, using blank lines as deliminators. I've eliminated text in the beginning prior to a blank line before the display line, and now want to only display those elements of the ary up to the first blank line.]