ingydotnet / io-all-pm

All in One Perl IO
http://search.cpan.org/dist/IO-All/
38 stars 20 forks source link

__WARN__ handler calls itself recursively #100

Open karenetheridge opened 7 years ago

karenetheridge commented 7 years ago

I did use Devel::Confess twice in my codebase and ended up dying with: Deep recursion on subroutine "Devel::Confess::_warn" at .../IO/All.pm line 148. The warn handler is being overridden twice, resulting in a goto to ourselves -- if the warn handler is to be kept, a != check needs to be done first!

wchristian commented 7 years ago

Some discussion on that in #70

karenetheridge commented 7 years ago

I updated the title and description to match my actual problem, leaving the question of the handler's necessity to the other ticket.