To include another file in perl program

From: Durai (tech_durai_at_yahoo.com)
Date: 04/30/04


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


Relevant Pages

  • Re: To include another file in perl program
    ... Regs, ... To include another file in perl program ... Outgoing mail is certified Virus Free. ...
    (perl.beginners)
  • RE: dijkstra algorithm by object oriented
    ... But i don't know if i'm going in the rigth way. ... Incoming mail is certified Virus Free. ... Checked by AVG anti-virus system. ... Outgoing mail is certified Virus Free. ...
    (comp.lang.python)
  • Re: temp file
    ... > "Kees Spierings" wrote in message ... > Outgoing mail is certified Virus Free. ... > Checked by AVG anti-virus system. ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Printing Excel object
    ... >>Then copy and paste into Publisher. ... >>>>Outgoing mail is certified Virus Free. ... >>>>Checked by AVG anti-virus system ... >>Outgoing mail is certified Virus Free. ...
    (microsoft.public.publisher)
  • Re: File size huge but file is empty
    ... "Gaggsy" wrote in message ... Outgoing mail is certified Virus Free. ... Checked by AVG anti-virus system. ...
    (microsoft.public.excel.misc)