On Thu, 2005-01-27 at 15:11, Manav Mathur wrote:
> use semantics internally do an import.
> By multiple files, do you mean multiple packages??
> see perldoc -f use
> 
> for the code that you have listed below, you'll have to 'use' Some::Module
> inside package MyLibModule.
> 
> for perldoc
> 
> The "import" is not a builtin--it's just an ordinary static method call into
> the "Module" package to tell the module to import the list of features back
> into the *current* package.
> 
> also see
> perldoc Exporter
> 
> Manav

I do not want to use Some::Module in my '.pm' file. Simple reason is
that the MyLibModule is being used by many scripts and every script does
not need functions from Some::Module. Why should I load the module
unneccarily then

In C++ I can do 
{
using namespace std;
cout << "Hi";         // Instead of std::cout << "HI";
}

Is there an equivalent in perl


Thanks
Ram





-- 
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