eval { # code here }; if ($@) { confess "$@"; } [download]
In reply to Re^5: Sending email in perl by BaldPenguin in thread Sending email in perl by Eagle_f91