Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 11816 invoked from network); 28 May 2007 09:56:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 May 2007 09:56:14 -0000 Received: (qmail 76426 invoked by uid 500); 28 May 2007 09:56:10 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 76413 invoked by uid 500); 28 May 2007 09:56:10 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 76402 invoked by uid 99); 28 May 2007 09:56:10 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 May 2007 02:56:10 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of amadoz@uv.es designates 147.156.1.90 as permitted sender) Received: from [147.156.1.90] (HELO postin.uv.es) (147.156.1.90) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 May 2007 02:56:04 -0700 Received: from post.uv.es (cuervo.ci.uv.es [147.156.1.157]) by postin.uv.es (8.13.5.20060308/8.13.5) with ESMTP id l4S9tf9I015591 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 28 May 2007 11:55:42 +0200 Received: from strogoff.uv.es (strogoff.ci.uv.es [147.156.1.92]) (authenticated bits=0) by post.uv.es (8.13.4/8.13.4) with ESMTP id l4S9tfor022216 for modperl@perl.apache.org; Mon, 28 May 2007 11:55:41 +0200 From: "Alicia Amadoz" To: modperl@perl.apache.org Subject: problem calling a file under mod_perl2 Date: Mon, 28 May 2007 11:55:41 +0200 (CEST) X-Real-Sender: amadoz@uv.es X-Postman-SMTP-Auth: 1,1 X-Mailer: postman 2.1 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Message-ID: <7458698241amadoz@uv.es> X-RelayDelay-Pure: Whitelisted relay cuervo.ci.uv.es [147.156.1.157]. Not delayed X-RelayDelay: Whitelisted relay cuervo.ci.uv.es [147.156.1.157]. Not delayed X-Virus-Checked: Checked by ClamAV on apache.org Hi, I have a problem loading a perl file under mode_perl2. I want to reuse some subrutines that I have in 'perl_functions.pl' file and I am trying to call this file from 'search.pl' file.=20 I get this error: Can't locate ../perl_functions.pl in @INC=20 My configuration is the following: In httpd.conf: PerlPostConfigRequire /usr/local/apache2/htdocs/www/p_scripts/perl-cgi/startup.pl In startup.pl: use lib qw(/usr/local/apache2/htdocs/www/p_scripts/perl-cgi); In search.pl: require "../perl_functions.pl";=20 'startup.pl' and 'perl_functions.pl' are in the same folder but 'search.pl' is in a subfolder. I would appreciate any suggestion regarding how to solve this error. Thanks in advance.