Please post to the list so we can all share.
 
> At 08:53 a.m. 22/12/2003 -0600, you wrote:
> 
> >Doe your m
> >
> > > Hi All
> > > I have a perl module I want to use in a perl script and make 
> > > available
> > by the  ' use mymodule.pm'  call.
> > > Plus I would like to place it the same directory as the 
> main script.
> > The main script runs fine until I
> > > make a call to the module. I then then I get a ' subroutine not 
> > > defined '
> >
> >Is the subroutine in your module?
> 
> Yes
> 
> >If so does the module export it, either automatically or by 
> >speciffically
> >reuqesting it?
> >         (IE use Module 'function';)
> >OR are you calling it by: Module::function() ??
> 
> Now you have got, it gets worst . Can you explain more
> 

You have to somehow get the function into main::

Either:

use Module 'function';
function();
Or
use Module;
my $obj = new Module;
$obj->function(); # if it's oopish and you've created an object of it called $obj
Or 
use Module;
Module::function(); 

Without more details of your code we can't do much I'm afraid.
Use stricy and warnings also that may help.

DMuey
> 
> >DMuey
> >
> > > What am I doing wrong. Thanks for your help
> > > Cheers
> > > Colin

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to