Menu

Funky perl messages? Please help! :)

Help
StoneTear
2002-02-09
2002-02-15
  • StoneTear

    StoneTear - 2002-02-09

    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

     
    • StoneTear

      StoneTear - 2002-02-10

      BTW- /usr/lib/perl5/5.6.1/i386-linux/IO/File.Pm does exist ;)

       
    • Jeremy Muhlich

      Jeremy Muhlich - 2002-02-15

      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.  :)

       

Log in to post a comment.