More bad advice

  • No checks on open call
    • open(FILE, 'file.dat');
    • But it worked from the command line!
  • No locking of files
  • Or using magic numbers in flock calls
  • Or unlocking before closing
    • flock(FILE, LOCK_UN); 
      close FILE;