in reply to capturing STDERR within a script
my @warnings; $SIG{__WARN__} = sub { push @warnings, shift; }; [download]