I would like my script perl to die whenever a warning is generated, including warnings which are generated by used packages.
For example, this should die:
I believe you're looking for $SIG{__WARN__} as documented in perlvar. Something similar to
$SIG{__WARN__}
$SIG{__WARN__} = sub { die @_ };
might be what you want.