This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Variable

Old posts that have not been replied to for several years.
Locked
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

How come that I can't reqest a variable like "$some-line" from the .conf file? If I request a variable like this I get this error message: 'can't read "some": no such variable'. This can be fixed somehow? Any sugestions?

Thx!
N
Nilsy

Post by Nilsy »

Try to look at documentation on
dev.scriptics.com

http://dev.scriptics.com/man/tcl8.4/TclCmd/global.htm

will tell you more aobut hte command you are looking for.

Regards

Nils
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Tcl does no have a inteligant parser, and cant tell that the "-line" of "$some-line" is part of the variable.

Try surounding the varibale with {}. EG "${some-line}"
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Aha .. I see. Thx ppslim.
Locked