[l2h] verbatim.perl: foreach $dir ("$texfilepath", split(/:/,$ENV{'TEXINPUTS'})) {

Erling D. Andersen e.d.andersen at mosek.com
Mon Apr 26 11:56:56 CEST 2004


Hi

In

verbatim.perl 

I found the the following code

 foreach $dir ("$texfilepath", split(/:/,$ENV{'TEXINPUTS'})) { 
        if (-f ($_ = "$dir/$file") || -f ($_ = "$dir/$file2")) {
            $found=1;
            #overread $_ with file contents
            &slurp_input($_);
            last;
        }

a. I think

$ENV{'TEXINPUTS'}

should be replaced by

$TEXINPUTS?  

I thought $ENV{'TEXINPUTS'} is the OS env variable that latex2html does not use it but rather
defines $TEXINPUTS.

b. /:/ should be replaced by /;/ on Windows?  Texinputs may have c:\mydir dir so splitting on : 
seems a bad idea.

I know nothing about PERL so I might have misunderstood it.

Erling

PS: My fix seems to solve a problem for me.


*************************************************************************
MOSEK ApS     
C/O Symbion Science Park    
Fruebjergvej 3, Boks 16
DK-2100 Copenhagen O
Denmark

Phone (work): +45 3917 9907
Mobile-phone: +45 2362 9520
Fax:               +45 3917 9823
Email to phone: 23629520 at gsm1800.telia.dk
Email: e.d.andersen at mosek.com
Homepage: http://erling.andersen.name 
                  http://www.mosek.com/homepages/e.d.andersen/

************************************************************************* 


**************************************************************************** 
Denne mail er blevet scannet af http://www.virus112.com 
****************************************************************************


More information about the latex2html mailing list