I don't see the problem with the code you've posted, but it might help to check that open and close succeed.
open(...) or die "Can't append '$dir/$file': $!"; # ... close(...) or die "Fail on close: $!";
You can even check print the same way, if you're so inclined. Don't forget to include $! in the error message; it's the most informative part.
In reply to Re: Totally Befuddled With (Lack of) Text Output
by kyle
in thread Totally Befuddled With (Lack of) Text Output
by o2bwise
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |