- The foreach ($line) is redundant.
- You're rewriting the file from the beginning for every line thanks to that seek. That's most probably not what you want.
- To print the contents of the file, you have to have the file opened for reading and read from it. print $fh; doesn't print the file, it prints the contents of variable $fh, which happens to be a filehandle.
In reply to Re: what does IO::File=GLOB mean?
by pjotrik
in thread what does IO::File=GLOB mean?
by ITmajor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |