What's at line 576? What version is Term::Cap? There isn't anything to do with STDOUT at that line in version 1.07 (included with 5.8.0) or version 1.08 (included starting with 5.8.1).
Comment on Re: setting 'no strict refs' in a module from the script