XP is just a number | |
PerlMonks |
Re^5: trouble parsing log file...by inman (Curate) |
on Nov 20, 2006 at 21:18 UTC ( [id://585149]=note: print w/replies, xml ) | Need Help?? |
The while (<DATA>){ line needs to read
<DATA> file handle is a "special" one that points to the bit in your script following the __DATA__ marker. This is useful to demonstrate the data associated with code in a forum like this. As suggested by others, it is good practice to close your file handle once you are finished with it.
In Section
Seekers of Perl Wisdom
|
|