Help for this page
#!/bin/perl -w use strict; ... close (NEWFILE); close REGFILE;
#!/bin/perl -w use strict; ... close (NEWFILE); close( REGFILE) || die "could not sort $datadir/projects.dat: $!"; # i +n this case the error happens when you close the file