in reply to Re: require issue.
in thread require issue.
somefile.plrequire "somefile.pl"; use newform; &someFile(); &newform::func1();
newform.pmsub someFile { print "LAMP"; } sub someFile1 { print "J2EE"; } 1;
while trying to run main.pl, getting the following errorpackage newform; require "somefile.pl"; sub func1 { &someFile1(); print "Inside func1"; } 1;
Undefined subroutine &main::someFile called at s1.pl line 5.
|
|---|