From: coolclooney on
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
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
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
στις 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