I don't know if I'm stating the obvious, but where's the part in your code where you actually read data from the file? That is, something like (assuming you rename DATA to MLB -- see below):
while ( <MLB> ) { # do stuff with the line read in from the file here }
As for the name DATA: it's a bad idea to use this name for a filehandle since this is used to denote data that can be embedded in the script file -- see perldoc Selfloader for more info.
Chris
M-x auto-bs-mode
In reply to Re: Printing a Text File
by lachoy
in thread Printing a Text File
by Perl Newby
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |