Re: require() function : strange result

2005-11-30 Thread Jay Scherrer
Simon, Your required file may not already be loaded the first time. Meaning that the file: test.pl will not be loaded until actually required. But once you use the file, it will be part of the ongoing process. Jay Scherrer On Thu, 2005-12-01 at 12:16 +0800, Simon Wong wrote: > Dear All, > > I ha

Re: require() function : strange result

2005-11-30 Thread Philip M. Gollucci
Simon Wong wrote: > - Actually I need to type the absolute path in the require() function, i.e. require("/var/www/html/test01.pl""). What should I do if I need relative path ? All paths are going to relative from the 'cwd' ehich is not the directory your script was initially run in. See ModP

require() function : strange result

2005-11-30 Thread Simon Wong
Dear All, I have problems of require() function, here is my simple program : test.pl --- #!/usr/bin/perl require "test01.pl"; test01.pl --- #!/usr/bin/perl print "content-type:text/html\n\n"; print ""; print "this is line one "; print ""; 1; At console mode