== is for numeric comparisons; you mean eq. Go read perlop.
Additionally: It doesn't really make any sense to close your output handle and then go on to process more rows. You probably want to use last to exit the loop and then close and print your footer outside.
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: Format statement and 'if' loop
by Fletch
in thread Format statement and 'if' loop
by perl_seeker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |