Front page | perl.beginners |
Postings from July 2003
Re: Need help on modules
Thread Previous
From:
Sudarshan Raghavan
Date:
July 31, 2003 04:33
Subject:
Re: Need help on modules
Message ID:
3F2900BA.3080506@kyocera-wireless.com
Pandey Rajeev-A19514 wrote:
>Hi,
>
>I want to create a module, say ABC.pm.
>I dont want to build and install the module.
>
Not sure what you mean by this.
>
>I want to use a function xyz() of the module ABC in some other script.
>AND, I want to call the function as
>xyz();
>instead of
>ABC::xyz();
>
This is possible as long your script has this statement
use ABC;
If ABC always exports xyz, you don't have to do anything extra. If you
have to explicitly ask for xyz from ABC, change the use statement to
use ABC qw(xyz);
perldoc perlmod
perldoc perlmodlib
Look for information about @EXPORT and @EXPORT_OK
>
>Can anyone tell me how to do that without installing the module ?
>
Clarification needed?
>Is it sufficient to push the Module path in @INC ?
>
The module must be installed somewhere before you can push the module
dir into @INC and use it.
>
>Regards
>Rajeev
>
>
>
Thread Previous