TCL - Part 2

Lists (Continued) Appending to lists is simple with lappend: Note: lappend takes just the name of the list. It updates the specified list, so you do not have to use set. % set list {this is {a list}} this is {a list} % lappend list {more stuff here} this is {a list} {more stuff here} % % puts $list this is {a list} {more stuff here} Inserting into a list is done with linsert....

2019-02-22

TCL - Part 1

I’ve been improving my knowledge of TCL since I’m starting to work with a lot of iRules (which are based on TCL) in my current position. With that said, here’s some notes I took from my latest round of studying and learning. Many thanks to Exploring Expect by Don Libes for facilitating my learning! Getting setup Installing TCL on Ubuntu: apt install tcl Launching the TCL shell: tclsh Variables Setting a variable: set i 100...

2019-02-18