Calling functions from modules



I have a script (call it test.pl) that calls a function from a module
as follows:

use MetaMon;
use strict;
MetaMon::friendlyDie "oneStringParameter";

The module is as follows:

package MetaMon;
use string;
sub friendlyDie
{
my $errorMessage = $_[0];
#irrelevant code
telnet_set_result("oneStringParameter");
exit;
}
1;

The problem is that telnet_set_result() is only available in test.pl
because an external piece of software is opaquely launching test.pl.
Is there any way I can reference back to the telnet_set_result()
function from MetaMon.pm? Currently I receive the error "Undefined
subroutine &MetaMon::telnet_set_result". Many thanks, Jon

.



Relevant Pages