perl texi2html.pl doesn't work
Dumas Patrice <[email protected]> Wed, 8 Jan 2003 16:34:38 +0100
| Newsgroups | gmane.comp.tex.texi2html.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
In comment in texi2html.pl there is
# You can run 'perl texi2html.pl' directly, provided you have
# the environment variable T2H_HOME set to the directory containing
# the texi2html.init file
First does somebody use that trick with success ?
It doesn't seems to work for me (perl v5.8.0). I made some changes (comment
use stricts, import MySimple) and it compiles, but there is a namespace
issue I cant resolve. Here is the error I get:
Undefined subroutine &main::pretty_date called at texi2html.pl line 4644.
I tried to add a package main; line just before require
"$ENV{T2H_HOME}/texi2html.init", but it doesn't work.
My perl book doesn't give any hint on what is happening. If somebody
understand why this subroutine isn't considered to be in the main
namespace, I would be gratefull.
Anyway, if it isn't just me, but this doesn't work, I think there are 2
possibilities (but as I show above I don't fully understand what's happening):
* drop this functionnality
* transform texi2html.init into a more common module instead of a required
file
What do you think would be the better ?
Pat