in reply to Re: Propose addition to use warnings?
in thread Propose addition to use warnings?

Hi Corion,

The way I understood perldigious' post is that the usage of the filehandle in my_sub is very rare, so more like warn sprintf "At offset %d: %s", tell $this_fh, $line if rand()<0.0001;, which makes the issue much harder to detect.

Regards,
-- Hauke D

Replies are listed 'Best First'.
Re^3: Propose addition to use warnings?
by perldigious (Priest) on Nov 28, 2016 at 18:41 UTC

    Yes, thanks for clarifying for me haukex. Corion is correct, there is a warning provided when the filehandle is attempted to be used by the subroutine, but that is a very rare occurrence due to an if it happens to be wrapped in, and to my shame, my test data didn't properly exercise that part of my code to make sure it was working when I wrote it (an oversight on my part).

    Just another Perl hooker - will code for food