die "...\n"; 

die "The --db-name option is required"
    unless $opt{db_name};
$ ./die-test
The --db-name option is required at ./die-test line 14.
$