in reply to Re: Tcl, Tcl::Tk now much better, but need documentation improvements
in thread Tcl, Tcl::Tk now much better, but need documentation improvements

Need more information: what version of Tcl/Tk installed, whether it is seen in PATH (actually it is possible to "bring" Tcl/Tk dictribution and have it together with perl, but anyway it should find correct tclXXX.dll)

What is inside that variable $fileName?

Note that you probably should do

$interp->Eval("source $fileName");

Courage, the Cowardly Dog

  • Comment on Re: Re: Tcl, Tcl::Tk now much better, but need documentation improvements
  • Download Code

Replies are listed 'Best First'.
Re: Re: Re: Tcl, Tcl::Tk now much better, but need documentation improvements
by Anonymous Monk on Aug 28, 2003 at 11:58 UTC
    actually its tcl::0.72 (not tcl::tk) perl 5.8 tcl 8.4 ... i started with $interp->evalfile("source $fileName") but changed to Eval because this was happening ... also it happens of i to $interp->Eval("set fh open $fileName").... basically what is happening is that wimdows os throwing a protection error when the Tcl process is trying to open a file
      odd.

      But please discover your $fileName variable.

      Of course there should be no protection error.
      May be backslashes backslashed once again in Tcl interpreter?
      You may need

      $interp->Eval("source {$fileName}");
      Note curly braces,.
      If there will be still problems, then show output of $interp->Eval("puts {$fileName}");

      Courage, the Cowardly Dog