use Try::Tiny qw( try catch ); try { some_module_function( $param1 , $param2 , .. ); } catch { my $die_Message = $_; ... };