Help for this page

Select Code to Download


  1. or download this
    #WRITE NUMBER BACK
    open(FH, "+< counter.dat");
    
  2. or download this
    #READ NUMBER, INCREASE AND WRITE NUMBER BACK
    open(FH, "+< counter.dat");
    ...
     seek(FH, 0, 0); truncate(FH, 0);
     print FH $id;
    close(FH);