[l2h] latex2html 99.1 and Perl 5.6.0

Thomas Anders Thomas Anders <anders@hmi.de>
Tue, 16 May 2000 17:13:27 +0200 (MET DST)


On May 16, 14:36, Jose Carlos Oliveira Santos wrote:
> No, you are not the only one who sees those errors. I also got
> .............................................................................
> Too many arguments for undef operator at latex2html line 2771, near "$trans)"
> Too many arguments for undef operator at latex2html line 3076, near "$etmp)"
> BEGIN not safe after errors--compilation aborted at latex2html line 4404

Of course the quick fix is to change all occurrances of "undef($var1,$var2);"
in latex2html to "undef $var1; undef $var2;". Same for rmdir (around line
8902).
Don't forget to change versions/html3_2.pl (line 804), too. Here are my
diffs (not authorized by Ross ;):

foo# diff latex2html.FCS latex2html
2771c2771
<               undef($cmd,$trans);
---
>               undef $cmd; undef $trans;
3076c3076
<       undef ($cmd,$tmp,$etmp);
---
>       undef $cmd; undef $tmp; undef $etmp;
8902,8903c8902,8903
<                       rmdir($this_dir,$print_dir) if $mode;
<                       if (!$mode) { &new_dir($this_dir,'r')};
---
>                       if ($mode) { rmdir($this_dir); rmdir($print_dir); }
>                       else { &new_dir($this_dir,'r')};
11312c11312
<           undef($contents, $captions);
---
>           undef $contents; undef $captions;

foo# diff html3_2.pl.FCS html3_2.pl
804c804
<               undef ($cmd,$tmp,$endspec); undef @cmds;
---
>               undef $cmd; undef $tmp; undef $endspec; undef @cmds;


HTH,
Thomas

--
Thomas Anders <anders@hmi.de>
Hahn-Meitner-Institut Berlin, Germany