From: coolclooney on 1 Jun 2010 13:58 What is the easiest or most common way to link a perl script to a tcl/ tk user interface? I have a perl script that should take a huuuuge list of long length text arguments. The first thing came to my mind is using: "exec script.pl arg1 arg2..... argn" but this is going to be awkward when dealing with very long list of long length args. Any other idea to define the variables in ENV variables with in the tk script before invoking the perl script? thanks,
From: Arndt Roger Schneider on 2 Jun 2010 04:16 coolclooney schrieb: >What is the easiest or most common way to link a perl script to a tcl/ >tk user interface? I have a perl script that should take a huuuuge >list of long length text arguments. The first thing came to my mind is >using: "exec script.pl arg1 arg2..... argn" but this is going to be >awkward when dealing with very long list of long length args. Any >other idea to define the variables in ENV variables with in the tk >script before invoking the perl script? >thanks, > > From Perl to Tcl: http://cpan.uwinnipeg.ca/dist/Tcl-Tk http://search.cpan.org/~vkon/TclTk-0.75/Tk.pm From Tcl to Perl: http://jfontain.free.fr/tclperl.htm When you do dive into this, please update the perl related wiki page (broken links): http://wiki.tcl.tk/13208 -roger
From: Jeff Hobbs on 3 Jun 2010 14:50 On Jun 1, 10:58 am, coolclooney <mohyeldi...(a)gmail.com> wrote: > What is the easiest or most common way to link a perl script to a tcl/ > tk user interface? I have a perl script that should take a huuuuge > list of long length text arguments. The first thing came to my mind is > using: "exec script.pl arg1 arg2..... argn" but this is going to be > awkward when dealing with very long list of long length args. Any > other idea to define the variables in ENV variables with in the tk > script before invoking the perl script? There are several ways to combine at the C level (see also Tkx in addition to Arndt's list), but for simplicity, it might be easiest to do open| from Tcl and pass the args on stdin. Jeff
From: Georgios Petasis on 3 Jun 2010 14:55 στις 2/6/2010 11:16, O/H Arndt Roger Schneider έγραψε: > coolclooney schrieb: > >> What is the easiest or most common way to link a perl script to a tcl/ >> tk user interface? I have a perl script that should take a huuuuge >> list of long length text arguments. The first thing came to my mind is >> using: "exec script.pl arg1 arg2..... argn" but this is going to be >> awkward when dealing with very long list of long length args. Any >> other idea to define the variables in ENV variables with in the tk >> script before invoking the perl script? >> thanks, >> >> > From Perl to Tcl: > http://cpan.uwinnipeg.ca/dist/Tcl-Tk > http://search.cpan.org/~vkon/TclTk-0.75/Tk.pm > > From Tcl to Perl: > http://jfontain.free.fr/tclperl.htm > > When you do dive into this, please > update the perl related wiki page (broken links): > http://wiki.tcl.tk/13208 > > -roger I have tried the tclperl way, but for about a year now I have trouble compiling the extension for windows using the latest VC++. I am sure that there is something wrong in the compiler configuration, but the compiled binary does not work well for recent perl versions. So, I haven't been able to provide windows binaries as I used to provide. George
|
Pages: 1 Prev: how to write .test file using tcltest Next: MS Dictation and TCL - crashes tcl |