activestate's Tcl.pm question
  Home FAQ Contact Sign in
comp.lang.perl.modules only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.perl.modules Profile…
 Up
activestate's Tcl.pm question         


Author: ~greg
Date: Mar 3, 2008 11:51

this ...

use Tcl;
my $Interpreter = new Tcl;
$Interpreter->Eval('puts "Hello world"');
$Interpreter->Eval('puts $auto_path');

puts this ...

Hello world
can't read "auto_path": no such variable at ...\test.pl line 4.

I want to know what ::auto_path is because
I am trying to insure that Tcl.pm uses Tcl/tk
instead of tkkit.dll.

thanks, if you can help,
(or if you're in Texas|Ohio and vote for Barack)

~greg
3 Comments
Re: activestate's Tcl.pm question         


Author: Janwillem Borleffs
Date: Apr 1, 2008 04:54

~greg schreef:
> this ...
> use Tcl;
> my $Interpreter = new Tcl;
> $Interpreter->Eval('puts "Hello world"');
> $Interpreter->Eval('puts $auto_path');
>
> puts this ...
>
> Hello world
> can't read "auto_path": no such variable at ...\test.pl line 4.
>

I have never used this module, but it seems that the problem is related
to the use of single quotes; try instead:

$Interpreter->Eval("puts $auto_path");

JW
no comments
Re: activestate's Tcl.pm question         


Author: ~greg
Date: Apr 3, 2008 21:32

"Janwillem Borleffs" jwscripts.com> wrote in message news:47f22266$0$3012$dbd4d001@dr5.euro.net...
> ~greg schreef:
>> this ...
>> use Tcl;
>> my $Interpreter = new Tcl;
>> $Interpreter->Eval('puts "Hello world"');
>> $Interpreter->Eval('puts $auto_path');
>>
>> puts this ...
>>
>> Hello world
>> can't read "auto_path": no such variable at ...\test.pl line 4.
>>
>
> I have never used this module, but it seems that the problem is related
> to the use of single quotes; try instead:
>
> $Interpreter->Eval("puts $auto_path");
Show full article (2.07Kb)
no comments
Re: activestate's Tcl.pm question         


Author: ~greg
Date: Apr 3, 2008 21:39

correction --
> If you
> print 'puts $auto_path';
> in perl, you'd simply get
> puts $auto_path.

no comments

RELATED THREADS
SubjectArticles qty Group
[svn:parrot] r14080 - in trunk: . languages/tcl/src/grammar/expr languages/tcl/tperl.cvs.parrot ·
Re: Tcl-URL! - weekly Tcl news and links (Jun 12)comp.lang.tcl ·
Dr. Dobb's Tcl-URL! - weekly Tcl news and links (Sep 20)12 comp.lang.tcl ·
Re: Tcl's Future was: Re: Apache 2.0 TCL solutioncomp.lang.tcl ·