in reply to File reade and recreate

Add:

seek $count_file, 0, 0;

before the print $count_file $count; in your first version of the code.

Perl is the programming world's equivalent of English

Replies are listed 'Best First'.
Re^2: File reade and recreate
by adriang (Sexton) on Aug 20, 2014 at 10:18 UTC

    Super, Thanks.