[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: Tk800.018 seems to be incompatible with perl 5.005_63 (with patch)



Hi David,

Someone else on the list reported the same issue yesterday.
As far as I am concerned (I wrote the current version of Tk::CmdLine),
it is that version of Perl that is in error. (Otherwise lots of our
code here at work is going to break.)

David Dyck wrote:

> I assume that this is a bug in Tk800.018, and that perl 5.005_63
> is just checking things better now, but I've cc'd p5p
> to verfiy this isn't a perl problem --
>  (( why should {map({0} ())} fail to compile but
>     {map ({0} ())} and {map({0}, ())} compile with perl -e ? ))
>
> First, I was able to make test with Tk800.018 and perl 5.005_57 (on a different
> host).
>
> With perl 5.005_63 the installed Tk800.018 fails to load.
>
> dd:dcd$ perl -MTk::CmdLine -e 0
> /usr/local/lib/site_perl/5.00563/i686-linux/Tk/CmdLine.pm has too many errors.
> Compilation failed in require.
> BEGIN failed--compilation aborted.
>
> Here's a patch to Tk/CmdLine.pm that is missing the comma in the map
> function call.
>
> --- Tk/CmdLine.pm.orig  Sat Jan 15 04:00:33 2000
> +++ Tk/CmdLine.pm       Tue Jan 25 12:30:07 2000
> @@ -380,7 +380,7 @@
>                  };
>              }
>
> -            my @postfix = map({ $_ . '/' . $self->{config}->{-class} }
> +            my @postfix = map({ $_ . '/' . $self->{config}->{-class} },
>                  ('/' . $self->{translation}->{'%L'}), '');
>
>              ITEM: foreach $fileSpec (split(':', $xpath))
>
> -++**==--++**==--++**==--++**==--++**==--++**==--++**==
> This message was posted through the Stanford campus mailing list
> server.  If you wish to unsubscribe from this mailing list, send the
> message body of "unsubscribe ptk" to majordomo@lists.stanford.edu

--
__END__

------------------------------------------------------------------------
  Ben Pavon 310.364.9827                         ben.pavon@hsc.hac.com
------------------------------------------------------------------------

Benny says "Do it right, do it once!"



Follow-Ups from:
Steve Lidie <Stephen.O.Lidie@Lehigh.EDU>
References to:
David Dyck <dcd@tc.fluke.com>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]