Re: fc2 tcl problem?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 29, 2004 at 01:34:52AM +0300, Georgios Petasis wrote:
> I am particularly worried about the statement:
> 
> upvar #0 ::env cgi::env
> 
> I think there is an error in this statement, as
> its executed from the cgi::data proc, and tries
> to create a variable named cgi::cgi::env, thus
> raising an error. (I think this is the problem, though
> I haven't tried to run the code...)
> 
> The solution is to simply use:
> 
> upvar #0 ::env env

Didn't work. Program runs, but login/actions/etc do nothing.

> which will make equivalent the env variable in the global
> scope with the env variable in the proc (which in turn
> is linked to the ::cgi::env variable through the variable statement).

upvar #0 ::env ::cgi::env did work! Thanks :)

Regards,
Luciano Rocha



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux