in reply to Re: store a warning in a variable
in thread store a warning in a variable

How can the length of @_ be anything other than 1?

Replies are listed 'Best First'.
Re^3: store a warning in a variable
by JavaFan (Canon) on Nov 09, 2010 at 21:31 UTC
    You are right. It even becomes much simpler:
    my $warning; $SIG{__WARN__} = sub {$warning = shift};
      You are right.

      No, it wasn't a rhetorical question. I thought you were going to have an explanation for me.

      Thanks :)