Dave Cross goes back to basics to show how using Perl's special variables can tidy up file-handling code.