Help for this page

Select Code to Download


  1. or download this
    use Tie::File;        
    tie @array, 'Tie::File', filename or die ...;
    ...
        push @array, $something_else
        $file_altered++;
    }
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    } else {
        print "File remains the same\n";
    }