Hi Manav,
But still import does not work across multiple files.
for eg,
main.pl-
#!/usr/bin/perl
#
use Some::Module qw(someFunction1);
require MyLibModule;
# This function will now work
someFunction1();
MyLibModule::someOtherFunction();
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
Ramprasad A Padmanabhan wrote:
Is there anyway I can do a
using namespace for a particular loop like in c++;
( for functions not exported )
Below are a few dirty little tricks that can get you something similar,
but I've never used them, and I'm not sure they are good practice...
Use at your
Ramprasad A Padmanabhan ha scritto:
Hi Manav,
But still import does not work across multiple files.
for eg,
main.pl-
#!/usr/bin/perl
#
use Some::Module qw(someFunction1);
require MyLibModule;
# This function will now work
someFunction1();