in reply to Hey Monks, I need help understanding how to write to a text file

DIN is a file handle. The syntax is actually depreciated. The more correct way is this:
use strict; # always use this for better code. use warnings; # always use this for more meaningful error messages. use English; my $din; open( $din, "<", $filename ) or die "Cannot open file, $filename, error: $ERRNO"; while (<$din>) # process file one line at a time { # do stuff hear on each line. } close( $din );

Neil Watson
watson-wilson.ca

  • Comment on Re: Hey Monks, I need help understanding how to write to a text file
  • Download Code