I've been running perlbot for a while now, but I just moved my bot to a new box, and when I try to launch him, I get the following message:
Can't locate object method "new" via package "IO::File" (perhaps you forgot to load "IO::File"?) at Logs.pm line 20.
I tried it on three different linux boxen, all with the same message... also tried 1.2.x, 1.4.x, and 1.5.x all with the same result. I know absolutely nothing about perl, so it's probably something stupid.. please help :)
Paul
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Oh, crap. Logs.pm and PerlbotCore.pm utilize IO::File without saying "use IO::File". I don't know why it has always worked for us. Perhaps some other library we use is pulling it in for itself, and perlbot gets it too by sheer luck.
So throw "use IO::File;" at the top of those 2 files, for now. 1.2.0 is on the way and nobody else has complained of this, so I'm reluctant to fix it and release a 1.4.3. :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all--
I've been running perlbot for a while now, but I just moved my bot to a new box, and when I try to launch him, I get the following message:
Can't locate object method "new" via package "IO::File" (perhaps you forgot to load "IO::File"?) at Logs.pm line 20.
I tried it on three different linux boxen, all with the same message... also tried 1.2.x, 1.4.x, and 1.5.x all with the same result. I know absolutely nothing about perl, so it's probably something stupid.. please help :)
Paul
BTW- /usr/lib/perl5/5.6.1/i386-linux/IO/File.Pm does exist ;)
Oh, crap. Logs.pm and PerlbotCore.pm utilize IO::File without saying "use IO::File". I don't know why it has always worked for us. Perhaps some other library we use is pulling it in for itself, and perlbot gets it too by sheer luck.
So throw "use IO::File;" at the top of those 2 files, for now. 1.2.0 is on the way and nobody else has complained of this, so I'm reluctant to fix it and release a 1.4.3. :)