home *** CD-ROM | disk | FTP | other *** search
/ Practical Programming in Tcl & Tk (4th Edition) / TCLBOOK4.BIN / pc / exsource.old / 6_5.tcl < prev    next >
Text File  |  2003-04-15  |  122b  |  12 lines

  1. #
  2. # Example 6-5
  3. # A switch with "fall through" cases.
  4. #
  5.  
  6. switch -glob -- $value {
  7.     X* -
  8.     Y* { takeXorYaction $value }
  9. }
  10.  
  11.  
  12.