perlcritic complaints that the following code, some boilerplate DBI stuff that works perfectly fine, should croak instead of die:
# Connect to database
my $db_ha
It's not necessarily wrong to use die()
but croak()
gives you or your user a lot more information about what went wrong. There's also variables that can be set in the Carp
namespace that can change this output to get more or less information.
It's equivalent to die()
but with more information and control.