in reply to Re: require issue.
in thread require issue.

Hi .. I tried to resolve and have the sample programs.. "Ant" correct me if I am wrong
main.pl
require "somefile.pl"; use newform; &someFile(); &newform::func1();
somefile.pl
sub someFile { print "LAMP"; } sub someFile1 { print "J2EE"; } 1;
newform.pm
package newform; require "somefile.pl"; sub func1 { &someFile1(); print "Inside func1"; } 1;
while trying to run main.pl, getting the following error
Undefined subroutine &main::someFile called at s1.pl line 5.