Umm... I guess this couldn't be the cause because it seems to work correctly when I try it but...
close MAIL || die "$!";contains the high-precedence || operator between unparenthesized operands. Perhaps your perl version is a quirky one that parses the thing incorrectly. You can't spoil anything by saying
close(MAIL) or die "$!";Just my two cents.
In reply to Re: close statement issue
by Sixtease
in thread close statement issue
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |