From: Bruce W. <br...@mi...> - 2003-04-19 18:42:44
|
> I have reinstalled and compiled perl on my box. Now MH is running on a > freshly new RH9 with Perl 5.8 greate? Yes > ... >> James also sent me the code file that the uncomiled mh generated >> on his RH 9 >> box. It showed that likely a newere version of perl is parsing >> the mh code >> wrong. I'll work with James offline to debug both these issues. James gave me ssh access to his RH 9 box and I was able to quickly narrow in on the problem and get it fixed for the next release (Probably tomorrow, Sunday). For those interested in the gory details, this was the code that did not work: my ($object, $type) = $record =~ /^\s{0,3}(\$\S+)\s*=\s*new\s+([^\s\(\;]+)/; It didn't parse any of the '$a = new XYZ' object records. If I dropped the last \s, it worked ok! But this messes up when parsing object records like '$a = new XYZ "parm"', so I changed it to this: my ($object, $type) = $record =~ /^\s{0,3}(\$\S+)\s*=\s*new\s+([A-Za-z0-9\_\-]+)/; What I can not explain is why this code fails with the RH 9.0 shipped binary. Works fine with the same perl 5.8.0 version on RH 8.0, and Stoll could get it to work on RH 9 by recompiling perl. Pretty wierd. Bruce |