I'm setting the warning signal ($SIG{__WARN__}) to my own handler, redirecting warnings to my log file. It is working. I can see the call come through, but the passed @_ is completely empty. Shouldn't I be able to get the warning message out of there? Thanks for any insights.
Sorry to reply to my own message, but I've figured out what's wrong and now I'm even more confused. I was doing:
$SIG{__WARN__} = \&my_warn();
When I changed it to the following, it started working:
$SIG{__WARN__} = sub { HANDLE WARN CODE HERE };
Can someone please explain the difference between the two assignments to me? Thanks again.
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]