Tclperl 3.1 review
Download
|
|
Tclperl project allows the execution of Perl code from within a TCL interpreter using one or several embedded Perl interpreters.
This package allows the execution of Perl code from a Tcl interpreter, as in:
package require tclperl
set interpreter [perl::interp new]
$interpreter eval {print "Hello Worldn"}
perl::interp delete $interpreter
You can actually create several Perl interpreters this way, if the tclperl package was linked against a Perl library compiled with -DMULTIPLICITY, otherwise only 1 Perl interpreter can exist at a time.
Starting with version 3.1, you can also access and use the parent Tcl interpreter from a Perl interpreter (and even from Perl threads):
package require tclperl
set interpreter [perl::interp new]
puts [$interpreter eval {
$Tcl::parent->eval('clock format [clock seconds]');
}]
perl::interp delete $interpreter
This package works on UNIX machines (Redhat Linux rpms available at
http://jfontain.free.fr/) and Windows (thanks to David Gravereaux, DLL also available).
Tclperl 3.1 search tags