Hi Monks,
My script, all of a sudden whenever I warn it gives me at the end this: <DATA> line 290. . In particular, try:
use Geography::Countries::LatLong; warn "xyz";
And true enough this module reads its __DATA__ section. But is there such thing as forgetting to close it? Because a) I don't want to have my scripts mention that someone else's __DATA__ is opened on some line urelated and b) I spent 5 minutes investigating and that's 5 minutes too much right now.
In this particular module, __DATA__ is read in a loop and that's it, no further reference to it.
So the questions are: in general can I close __DATA__ which my module/script opened? And should any module close its __DATA__ when done with it? Otherwise, will I have to live with <DATA> line 290 messages all my Perl life?
bw, bliako
In reply to Do I need/want to close __DATA__? by bliako
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |