include a file in perl script
I have a file that I need to include into an existing perl script. The file is nothing more than 3 variables that I wanted to apply to several perl scripts. So my questions are...
1. Since the included file is nothing but varibles, must the first line at the top of this include page still be: Code:
#!/usr/bin/perl -w Code:
require("path/to/filename"); Thanks for any help.. P.S. I am trying to accomplished the eqivilent of the PHP "include" function. |
1) Not necessary
2) The syntax is wrong. Try read the doc perldoc -f do perldoc -f require perldoc -f use You know perldoc right? 3) If it causes problem, it would be about not having proper declarations of the variable |
All times are GMT -5. The time now is 02:16 PM. |