And uncomment the line that opens that filehandle.while (<$fh>) {
The DATA filehandle usually refers to some embedded data at the end of the code, which starts after the __DATA__ line. It's quite often used in examples.
I suspect that you copied some code verbatim, without realising you needed to change that ;)
Cheers,
Darren :)
In reply to Re: need help on unopened file handle
by McDarren
in thread need help on unopened file handle
by tuakilan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |