why not use this instead:
timtowtdi though...# replace exit(0); with: exit(close(DATA)); # or (at beginning of script) sub exit_script { close(DATA); exit(0); } # then replace your exit calls with exit_script;
cLive ;-)
In reply to a flash of inspiration...
by cLive ;-)
in thread Closing and re-opening the DATA Filehandle
by Adam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |