my @warnings; $SIG{__WARN__} = sub { push @warnings, shift; }; [download]
In reply to Re: capturing STDERR within a script by bart in thread capturing STDERR within a script by kiz