in reply to How to avoid this error...
You might want to use IO::File; before you actually use it. It looks like you included your entire script and there's no declaration to use IO::File;
Hope this helps,
Rich
In Section
Seekers of Perl Wisdom