in reply to Capturing Text from a die command

If you're trying to catch a die message from a program you don't control, you could define $SIG{__DIE__} to point to a subroutine that will handle the messages for you.

Note that if you want to capture the warnings, use $SIG{__WARN__}.