CC: | torsten.foertsch [...] gmx.net |
Subject: | prototype mismatch |
In T::A::Base line 21 a function without prototype is assigned to *CORE::GLOBAL::exit. This function prints out a warning and calls the original exit(). If exit() has not been overwritten, that's fine. However, if another module has already overwritten exit() and if it has used the correct prototype (;$), the assignment in T::A::Base causes 1-2 warnings:
* Subroutine CORE::GLOBAL::exit redefined
* Prototype mismatch: sub CORE::GLOBAL::exit (;$) vs none
I think the best solution is to just turn off warnings before the assignment.