in reply to running the tcl scripts in perl
Instead of running the Tcl code really embedded inside your Perl code, you might want to just launch the Tcl interpreter with the script and capture the output. The simplest approach would be:
my $script = 'my_script.tcl'; system($script) == 0 or die "Couldn't launch '$script': $! / $?";
If you want to capture the output of your script, use backticks:
my @lines = `$script`;
There are many other ways, like Open2 and Open3, depending on whether you need to talk to the Tcl script or need to separate the output streams.
|
|---|