http://www.perlmonks.org?node_id=1013862


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.

topher++

I'd consider having

else { die "send_mail - bad type: $type\n" }
at the end.