Part III. Jacl Programming tcltutorial

Table of Contents

19. Introduction
Introduction
Additional Resources
Credits
20. Simple Text Output
Simple Text Output
Example
21. Assigning values to variables
Assigning values to variables
Example
22. Evaluation & Substitutions 1: Grouping arguments with ""
Evaluation & Substitutions 1: Grouping arguments with ""
Example
23. Evaluation & Substitutions 2: Grouping arguments with {}
Evaluation & Substitutions 2: Grouping arguments
24. Evaluation & Substitutions 3: Grouping arguments with []
Evaluation & Substitutions 3: Grouping arguments with []
Example
25. Results of a command - Math 101
Results of a command - Math 101
OPERANDS
OPERATORS
MATH FUNCTIONS
TYPE CONVERSIONS
Example
26. Numeric Comparisons 101 - if
Numeric Comparisons 101 - if
Example
27. Textual Comparison - switch
Textual Comparison - switch
Example
28. Looping 101 - While loop
Looping 101 - While loop
Example
29. Looping 102 - For and incr
Looping 102 - For and incr
Example
30. Adding new commands to Tcl - proc
Adding new commands to Tcl - proc
Example
31. Variations in proc arguments and return values
Variations in proc arguments and return values
Example
32. Variable scope - global, upvar, and unset
Variable scope - global and upvar
Example
33. Tcl Data Structures 101 - The list
Tcl Data Structures 101 - The list
Examples
34. Adding & Deleting members of a list
Adding & Deleting members of a list
Example
35. More list commands - lsearch, lsort, lrange
More list commands - lsearch, lsort, lrange
Example
36. String Subcommands - length index range
String Subcommands - length index range
Example
37. String comparisons - compare match first last wordend
String comparisons - compare match first last wordend
Example
38. Modifying Strings - tolower, toupper, trim, format
Modifying Strings - tolower, toupper, trim, format
Example
39. Regular Expressions 101
Regular Expressions 101
Example
40. More Quoting Hell - Regular Expressions 102
More Quoting Hell - Regular Expressions 102
Example
41. Associative Arrays
Associative Arrays.
Example
42. More On Arrays - Iterating and use in procedures
More Array Commands - Iterating and use in procedures
Example
43. File Access 101
File Access 101
Example
44. Information about Files - file, glob
Information about Files - file, glob
Example
45. Learning the existence of commands and variables ? - info
Learning the existence of commands and variables ? - info
Example
46. State of the interpreter - info
State of the interpreter - info
Example
47. Information about procs - info
Information about procs - info
Example
48. Modularization - source
Modularization - source
Example
49. Building reusable libraries - packages and namespaces
Building reusable libraries - packages and namespaces
Using packages
Creating a package
Namespaces
Using namespace with packages
Example
Ensembles
50. Creating Commands - eval
Creating Commands - eval
Example
51. More command construction - format, list
More command construction - format, list
Example
52. Substitution without evaluation - format, subst
Substitution without evaluation - format, subst
Example
53. Changing Working Directory - cd, pwd
Changing Working Directory - cd, pwd
Example
54. Debugging & Errors - errorInfo errorCode catch error return
Debugging and Errors - errorInfo errorCode catch error return
Example
55. More Debugging - trace
More Debugging - trace
Example
56. Command line arguments and environment strings
Command line arguments and environment strings
Example
57. Timing scripts
Timing scripts
Example
58. Time and Date - clock
Time and Date - clock
Example
59. Child interpreters
Child interpreters
Example