Cargando…

Tcl/Tk 8.5 Programming Cookbook.

Over 100 great recipes to effectively learn Tcl/Tk 8.5.

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Wheeler, Bert
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing, 2011.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Tcl/Tk 8.5 Programming Cookbook; Copyright; Credits; About the Author; Acknowledgment; About the Reviewers; www.PacktPub.com; Support files, eBooks, discount offers and more; Why Subscribe?; Free Access for Packt account holders; Preface; What this book covers; What you need for this book; Who this book is for; Conventions; Reader feedback; Customer support; Errata; Piracy; Questions; 1. The Tcl Shell; Introduction; The Tcl shell; Writing to the Tcl console; Getting ready; How to do it ... ; How it works ... ; Mathematical expressions; Tcl expr operands; Mathematical functions.
  • Computing mathematical expressionsReferencing files in Tcl; UNIX (UNIX, Linux and Mac OS X); Windows; Variables; Basic variable commands; Getting Ready; How to do it ... ; How it works ... ; There's more ... ; Unsetting a variable; Command line arguments; Launching a Tcl script; Getting Ready; How to do it ... ; How it works ... ; There's more ... ; 2. Using the Building Blocks Control Constructs; Introduction; Controlling flow with the if statement; How to do it ... ; How it works ... ; There's more ... ; Looping with for; How to do it ... ; How it works ... ; Looping with foreach; How to do it ... ; How it works ... ; Looping with while.
  • How to do it ... How it works ... ; Continuing a procedure; How to do it ... ; How it works ... ; Breaking out of a procedure; How to do it ... ; How it works ... ; Nested looping; How to do it ... ; How it works ... ; There's more ... ; 3. Error Handling; Introduction; Using the catch command; Getting ready; How to do it ... ; How it works ... ; Using the eval command; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Using the error command; Getting ready; How to do it ... ; How it works ... ; Error handling procedure; Getting ready; How to do it ... ; How it works ... ; 4. Handling String Expressions; Introduction; Appending to a string.
  • How to do it ... How it works ... ; Formatting a string; How to do it ... ; How it works ... ; Matching a regular expression within a string; Getting ready; How to do it ... ; How it works ... ; Performing character substitution on a string; How to do it ... ; How it works ... ; Parsing a string using conversion specifiers; How to do it ... ; How it works ... ; Determining the length of a string; How to do it ... ; How it works ... ; Comparing strings; Getting ready; How to do it ... ; How it works ... ; Comparing a string of characters; How to do it ... ; How it works ... ; Locating the first instance of a character; How to do it ... ; How it works ...
  • Locating the index of a characterHow to do it ... ; How it works ... ; Determining the class of a string; How to do it ... ; How it works ... ; Locating the last instance of a string; How to do it ... ; How it works ... ; Determining the size of a string; How to do it ... ; How it works ... ; Replacing values within a string; How to do it ... ; How it works ... ; Locating a pattern within a string; How to do it ... ; How it works ... ; Returning a range of characters from a string; How to do it ... ; How it works ... ; Creating a string of repeated characters; How to do it ... ; How it works ... ; Replacing ranges of characters contained within a string.