The best thing to debug your problem is "perl debugger" (perl -d) and the simplest thing is "print". Did you check whether $_ or $fields[5] contain any value? I found a problem and a suspicion. Here are following.
I hope this helps
In reply to Re: Where is my output stream to a file going?
by samarzone
in thread Where is my output stream to a file going?
by lomSpace
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |