[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

FW: [MacPerl] MacPerl/Tk



Thanks for all the Tk advice on Mac-OS and MacPerl, but Wish has to have an 
internet connection to talk to MacPerl--is this always true.   PerlWish.pm 
evidently has been modified since the listed steps were valid.  Here goes:\

lineno.   commands
(269)     $self->{WishPort} = defined( $port ) ? $port : 1117;
(270)     $self->{PerlWish_tcl} = defined( $path_to_PerlWish_tcl ) ?
$path_to_PerlWish_tcl : "PerlWish.tcl";
(271)     $self->{ReadFromWish} = $self->{WriteToWish} = \*PerlWish_Socket;
(272)     $self->{Logging} = 0;
(273)     $self->{BytesToReadFromSocketAtATime} = 1024;
(274)     $self->{WishPid} = 0;
(275)
(276)     $self->{Localhost} = ($^O eq 'MacOS') ? '127.0.0.1' : '127.0.0.1';

I modified line 276 from ? '127.0.0.1' : 'localhost' to the above.  Assuming
that this line was 253, I counted back to 271 and commented it out.  But
that didn't work.  However, Wish is working except that it seems to require
an internet connection to work.  Can I configure things to loop back on
myself?  Is my connection requirement related to the line that I should
comment out?

Here is my error from MacPerl if I run with 271 commented out
# Use of uninitialized value.
File ':PerlWish.pm'; Line 522
# Bad symbol for filehandle.
File ':PerlWish.pm'; Line 522

-wha

> From: Chris Nandor <pudge@pobox.com>
>  Subject: Re: Fwd: Announcing WishPerl
> 
>  Whaddya know, it works.
> 
>  1.  Download Tcl/Tk 8.0.4.
> 
>      ftp://ftp.scriptics.com/pub/tcl/mac/mactk8.0.4.sea.hqx
> 
>  2.  Install it.
>  3.  Download WishPerl.
>  4.  Edit PerlWish.pm as follows:
>  * Comment out line 248
>  * Change "localhost" on line 253 to "127.0.0.1".
>  5.  Launch "Wish 8.0.4" (installed with Tcl/Tk).
>  6.  Choose "Source..." from Tcl/Tk menu, find and select PerlWish.tcl (from
>  the PerlWish installation).
>  7.  Run PerlWish's test.pl in MacPerl.
> 
>  It will control the GUI in Wish 8.0.4, and display text in MacPerl, so hide
>  other apps and make sure you can see all the windows you need to.  You can
>  hide the console in Wish 8.0.4 with a menu item in that app.
> 
>  Go Ye Therefore and Maketh GUIs.
> 
>  --
>  Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
>  %PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch