On Thu, 12 Jul 2012 13:27:26 +0200, Gabor Szabo <ga...@szabgab.com> wrote:
Hi, is there a way to capture warnings in Perl 6 - similar to $SIG{__WARN__} in Perl 5 ? Gabor
CONTROL block seems to be the solution. $ perl6 -e 'warn "oh noes"; CONTROL { default { say "caught: $_" } }' caught: oh noes -- Tadeusz Sośnierz