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();


MyLibModule::someOtherFunction();

---------------END--------------------



--------------MyLibModule.pm--------------
#
#
#

use Some::Module qw(someFunction1);

sub someOtherFunction { someFunction1() ; # WILL NOT WORK HERE # I have to write Some::Module::someFunction1()
}


1;
-----------------END----------------------------




Thanks Ram




Marcello

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