I've never had any other problems like these with Perl/PerlScript. I'm using the latest MUclient and PerlScript (from ActiveState).
I have a ping subroutine that I use to ping the sites I connect to. It reports the ping time or failure in the status bar. This routine worked flawlessly when I was using the standard Net::Ping package. I recently installed the Time::HiRes package, which provides the ability to use milliseconds in Perl. To activate this in the ping package, I use the following:
When I try to call the subroutine to ping the site, with hires active, MUclient returns an error dialog with the following details:
I have a subroutine that spews out a word repeated several times on one line, each instance with a different colour code (this is for a talker system that supports colour codes). The idea is to have a line like this:
Each instance of "Hello!" is coloured differently. The script randomly picks a colour set for each instance. However, MUclient does not like the rand() function of PerlScript! I have to put the rand() function into a seprate script, converted to a .BAT file, then call it from within the MUclient script. (This method is REALLY slow to process!!) If I try to use rand() within a MUclient script, I receive the following error dialog:
Initially I thought these errors might be caused by an outdated version of ActivePerl. But, after upgrading to the latest version, these errors still happen.
I have a ping subroutine that I use to ping the sites I connect to. It reports the ping time or failure in the status bar. This routine worked flawlessly when I was using the standard Net::Ping package. I recently installed the Time::HiRes package, which provides the ability to use milliseconds in Perl. To activate this in the ping package, I use the following:
$p = Net::Ping->new("icmp", , 8);
$p->hires(1); # enable milliseconds via Time::HiRes
When I try to call the subroutine to ping the site, with hires active, MUclient returns an error dialog with the following details:
Error number: -2147467259
Event: Execution of line 1 column 0
Description: Internal Error
Line in error:
Called by: Immediate execution
I have a subroutine that spews out a word repeated several times on one line, each instance with a different colour code (this is for a talker system that supports colour codes). The idea is to have a line like this:
Hello!Hello!Hello!Hello!Hello!
Each instance of "Hello!" is coloured differently. The script randomly picks a colour set for each instance. However, MUclient does not like the rand() function of PerlScript! I have to put the rand() function into a seprate script, converted to a .BAT file, then call it from within the MUclient script. (This method is REALLY slow to process!!) If I try to use rand() within a MUclient script, I receive the following error dialog:
Error number: -2147467259
Event: Execution of line 1 column 0
Description: Internal Error
Called by: Function/Sub: doRainbow called by alias
Reason: processing alias "rainbow"
Initially I thought these errors might be caused by an outdated version of ActivePerl. But, after upgrading to the latest version, these errors still happen.