in reply to Re^2: Seeking guidance for more idiomatic way of (re)writing this script.in thread Seeking guidance for more idiomatic way of (re)writing this script.
I'd consider having
else { die "send_mail - bad type: $type\n" } [download]