in reply to Can't locate object method "autoflush"

Does adding use FileHandle qw( ); help?