Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
2Activity

Table Of Contents

TCL语法
■脚本、命令和单词符号
■置换(substitution)
■变量置换(variable subtitution)
■命令置换(command substitution)
■反斜杠置换(backslash substitution)
■双引号和花括号
■注释
变量
■简单变量
■数组
■相关命令
■set
■unset
■append和incr
表达式
■操作数
■运算符和优先级
■数学函数
List
■list命令
■concat命令
■lindex命令
■llength命令
■linsert命令
■lreplace命令
■lrange 命令
■lappend命令
■lsearch 命令
■lsort命令
■split命令
■join命令
控制流
■if命令
■循环命令:while 、for、 foreach
■while命令
■for命令
■foreach命令
■break和continue命令
■switch 命令
■eval命令
■source命令
过程(procedure)
■过程定义和返回值
■局部变量和全局变量
■缺省参数和可变个数参数
■引用:upvar
字符串操作
■format命令
■scan命令
■regexp命令
【TCL正则表达式规则详细说明】
■regsub命令
■string命令
■1、string compare ?-nocase? ?-length int? string1 string2
■2、string equal ?-nocase? ?-length int? string1 string2
■3、string first string1 string2 ?startindex?
■4、string index string charIndex
■5、string last string1 string2 ?startindex?
■6、string length string
■7、string match ?-nocase? pattern string
■8、string range string first last
■9、string repeat string count
■10、string replace string first last ?newstring?
■11、string tolower string ?first? ?last?
■12、string toupper string ?first? ?last?
■13、string trim string ?chars?
■14、string trimleft string ?chars?
■15、string trimright string ?chars?
文件访问
■文件名
■基本文件输入输出命令
■随机文件访问
■当前工作目录
■文件操作和获取文件信息
错误和异常
■错误
■从TCL脚本中产生错误
■使用catch捕获错误
■其他异常
深入TCL
■查询数组中的元素
■info命令
■变量信息
■过程信息
■命令信息
■TCL的版本和库
■命令的执行时间
■跟踪变量
■命令的重命名和删除
■unknown命令
■自动加载
0 of .
Results for:
No results containing your search query
P. 1
TCLtutorial

TCLtutorial

Ratings: (0)|Views: 66|Likes:
Published by Jackie Tai

More info:

Published by: Jackie Tai on Apr 23, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

07/10/2013

pdf

text

original

You're Reading a Free Preview
Pages 5 to 46 are not shown in this preview.
You're Reading a Free Preview
Pages 51 to 84 are not shown in this preview.

Activity (2)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->