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 (<FILE>) {

You want to read from the file, but you opened the file for appending only.

Octavian


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to