in reply to Re: close statement issue
in thread close statement issue

That is correctly parsed as close(MAIL) || die("$!"). See the precedence table in perlop; close is a "named unary operator" and has higher precedence than ||.