Re: help to delete a line

2002-02-27 Thread John W. Krahn
Joanne Fearon wrote: > > Hi, Hello, > I have a file that I am chopping and changing. I want to delete line 12 > each time. I have a counter to tell the line number. Ive tried > > if ($counter == 12) > { > next; > } > $counter++ > > this doesn't give an error but doesnt

RE: help to delete a line

2002-02-27 Thread John Edwards
You need to increment the counter *inside* that block as well. Otherwise, $counter will remain 12 and you will go into an infinite loop. if ($counter == 12) { $counter++ next; } $counter++; HTH John -Original Message- From: Joanne Fearon [mailto:[EMAIL PROTECTED]] Sent: