perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Pang <>
Subject a require problem
Date Fri, 29 Aug 2008 13:54:54 GMT
I have began a project, but meet some problems,:)

say there are three dirs:

|- cgi-bin
|- cgi-bin - lib
|- cgi-bin - template

I have a script in cgi-bin, which requires the template file from template dir.
This script also uses a library file (.pm) from lib dir.
Finally the library need to require the former template file too.

say the script is, the lib file is, the template file is myttt.tmpl.

so in

use lib './lib';
use mylib;
require 'template/myttt.tmpl';


require '../template/myttt.tmpl';

When I execute "perl", it can't run, saying the routines in myttt.tmpl can't be found.

How to fixup it? thanks.


 Créez votre adresse électronique 
 1 Go d'espace de stockage, anti-spam et anti-virus intégrés.

View raw message