I'm new to perl so this may be an easy answer.
I am trying to move some common code into a file called stylesheet.pl. Then from my other pl files I want to "require" that file. All files are located in the same directory. However, when I attempt to run the file that requires stylesheet.pl I get the following error:
stylesheet.pl did not return a true value at addfather.pl line 4.
The line I used to "require" this file is here:
#!/usr/bin/perl use CGI; require "stylesheet.pl"; $objCGI = new CGI;
Any clues as to what is going on are appreciated. Thanks.
Just,
Kurious
In reply to require problems by Kurious
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |