in reply to signal handlers that play nice

local $SIG{__WARN__} = sub { ... };
Much better, cleaner, and you have the compiler handle silly stuff like replacing the old one for you.

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

Replies are listed 'Best First'.
Re^2: signal handlers that play nice
by esharris (Monk) on Oct 28, 2005 at 09:12 UTC
    It is not immediately obvious how you would call the previous warn routine within your subroutine.