in reply to Re^2: print() on closed filehandle WRITE_FH
in thread print() on closed filehandle WRITE_FH
Probably because I've added your suggestions in the wrong place.
Yes, and pryrt already explained the issue. But then you posted here, so it seems like you didn't get it working?
If you take a look at the documentation I linked to, and the replies you've gotten, you'll see that:
If you go through your program line-by-line, the above information should be enough for you to see what is going wrong and how to fix it. If you have questions about the above, please always feel free to ask.
I understand the appeal of being able to copy and paste code and just have it work. However, I find it so much more satisfying to figure it out myself, to understand the flow of the code and what is going on. And of course, having it figured out means I'll know more about what I'm doing next time. In fact, I intentionally didn't post a block of code in an attempt to encourage you to look at the docs and figure it out :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: print() on closed filehandle WRITE_FH
by TonyNY (Beadle) on Oct 01, 2018 at 12:41 UTC | |
by Your Mother (Archbishop) on Oct 01, 2018 at 13:23 UTC |