perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Pang <pa...@laposte.net>
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 myscr.pl, the lib file is mylib.pm, the template file is myttt.tmpl.

so in myscr.pl:

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


in mylib.pm:

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


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


How to fixup it? thanks.


Regards,
Jeff.

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

Mime
View raw message