To include another file in perl program
From: Durai (tech_durai_at_yahoo.com)
Date: 04/30/04
- Next message: Charles K. Clarkson: "RE: To include another file in perl program"
- Previous message: Wiggins D Anconia: "Re: Info needed..."
- Next in thread: Charles K. Clarkson: "RE: To include another file in perl program"
- Reply: Charles K. Clarkson: "RE: To include another file in perl program"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: <beginners@perl.org> Date: Fri, 30 Apr 2004 08:51:53 +0530
Hello All,
I have the following perl program.
#!/opt/perl/bin/perl -w
require "test_init.pl" or die("Can't require test_init.pl");
require "configure.pl" or die("Can't require configure.pl");
require "common_functions.pl" or die("Can't require common_functions.pl");
In this, configure.pl and common_functions.pl needs test_init.pl file. The
above one is not working. I have the following error.
$ perl runtest.pl
configure.pl did not return a true value at runtest.pl line 4.
It works fine only after I included test_init.pl file in configure.pl and
common_functions.pl files.
Why it doesn't work?
Regs,
Durai.
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.665 / Virus Database: 428 - Release Date: 4/21/2004
- Next message: Charles K. Clarkson: "RE: To include another file in perl program"
- Previous message: Wiggins D Anconia: "Re: Info needed..."
- Next in thread: Charles K. Clarkson: "RE: To include another file in perl program"
- Reply: Charles K. Clarkson: "RE: To include another file in perl program"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|