|
[TCL] Strings
|
|
06-08-2010, 11:58 AM
(This post was last modified: 06-08-2010 11:59 AM by Back_track.)
Post: #1
|
|||
|
|||
|
[TCL] Strings
Strings, an Introduction
Strings in Tcl are easy , yet powerful. Defining a String is easy as Code: set Str "String here!"Tcl , like many other scripting languages doesn't require a type to declare your variables in. So, you dont have to do something like this: String Str = "String here!"; - Java String Functions String Length If you're already familiar with TCL, you know that inside string you can use [ ] for escape characters. So to display a Strings length you can do this: Code: set Str "String here!"The Syntax goes: type , function, variable Variables MUST have the scalar symbol before it to show it is a variable. ![]() To Upper & To Lower Very simple in TCl Code: set Str "RaNdOm StUfF HeRe"Byte-length Code: set Str "String Here!""Character is determined more by the lack of certain experiences than by those one has had." Friedrich Nietzsche |
|||
|
06-09-2010, 03:27 AM
Post: #2
|
|||
|
|||
|
RE: [TCL] Strings
Very good tut. I understand strings in almost every language !
There's a fine line between genius and insanity. I have erased this line. Oscar Levant There's a fine line between an administrator and black hat hacker. I have erased this line. Dr DEBCOL |
|||
|
« Next Oldest | Next Newest »
|



![[Image: 64504_screenshot.png]](http://myph.us/pics/64504_screenshot.png)


