Re: question on appending file

2008-06-25 Thread Rob Dixon
bob wrote: > Hi > I wrote a program to append a number to an existing file. > but found a problem that i can't understand > > *** > code1: > my $cnt= 0 > open FILE, ">>diff.txt"; > > while () { > if (match some condition) { > $cnt= $

Re: question on appending file

2008-06-25 Thread Octavian Rasnita
From: "bob" <[EMAIL PROTECTED]> > Hi > I wrote a program to append a number to an existing file. > but found a problem that i can't understand > > *** > code1: > my $cnt= 0 > open FILE, ">>diff.txt"; > > while () { You want to read from the fil