Calling functions from modules
- From: "jrpfinch" <jrpfinch@xxxxxxxxx>
- Date: 25 Jan 2007 09:56:56 -0800
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
.
- Follow-Ups:
- Re: Calling functions from modules
- From: jrpfinch
- Re: Calling functions from modules
- Prev by Date: Re: Storing RegExp matches in an array
- Next by Date: Re: MD5 (version 2.36) not match with boottrap parameters on perl 5.8 lib (version 2.16)
- Previous by thread: Storing RegExp matches in an array
- Next by thread: Re: Calling functions from modules
- Index(es):
Relevant Pages
|