PDA

View Full Version : Undefined subroutine error?


Grimman
04-09-2013, 16:03
I noticed today that my stats gathering for Team Fortress 2 servers suddenly halted.

After trying to restart the HLStatsX startup script, I suddenly get the following error in the logs:
Undefined subroutine &Scalar::Util::weaken called at .//TRcon.pm line 74.This is using the latest version of 1.6.19. I haven't done any changes at all to HLStats, this just suddenly started happening.

Mavrick4283
04-09-2013, 19:29
Try this

perl -MCPAN -e 'shell'


Then in the new prompt

force install Scalar::Util

Grimman
04-10-2013, 15:22
That fixed it!

Thanks!

talibana
10-09-2014, 04:31
Hello i have problem with hlstats.pl

Undefined subroutine &main::doConf called at ./hlstats.pl line 1784.

my system is debian 7