in reply to Re: Propose addition to use warnings?
in thread Propose addition to use warnings?
Thanks davido, I figured I may be asking for too much, but I wasn't sure so I asked the Monastery.
...that's not a reasonable place, because Perl doesn't really know the purpose of my_sub, and doesn't know at this point what you are planning to do with $first_fh.
That is where I would have requested the warning to be given, basically a "you already closed this filehandle, are you sure you still want to be using it for anything at all?" sort of warning. If it's not reasonable it's not reasonable. I suppose I'm just being the guy trying to blame his tools when it's actually his own ineptitude at using them that's the problem. :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Propose addition to use warnings?
by davido (Cardinal) on Nov 28, 2016 at 19:36 UTC |