#1 time() not found in IRC.pm

open
nobody
None
5
2004-01-10
2004-01-10
Anonymous
No

I am running ActivePerl 5.6.1.635 on Win2k, and have
installed Net:IRC into perl\site\lib

When I try to run the irctest script (or any other simple
test script), once the script has made a connection, I
get the following output:

Creating connection to IRC server...
done.
starting...
Undefined subroutine &Net::IRC::time called at C:
/Perl/site/lib/Net/IRC.pm line 130.

The line in question is inside the sub do_one_loop and
reads:

$time = time(); # no use calling time() all the time.

Which seems innocent enough.

--
Misha Gale
mishagale@DO.NOT.SPAM.ME.fastmail.fm

Discussion

  • Logged In: NO

    Just put # before it (make it comment) and go! I do this an it
    is working;)

     
  • sublies
    sublies
    2004-05-21

    Logged In: YES
    user_id=1046968

    Net::IRC binds time() to Time::HiRes. Install this module and
    you'll be fine.