- Explain "fails". What happens, what do you expect to happen instead?
- Add use strict; use warnings; to your code.
- Add error checks to your code (open ... or die "... $!" or use autodie qw(:all);).
Alexander
--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)