Re: Untitled

By Tinct Marten, 11 Years ago, written in TCL/iTCL, viewed 404 times. This paste is a reply to Untitled by Little Tern
URL http://pb.stoleyour.com/view/09f0981c Embed
Download Paste or View RawExpand paste to full width of browser
  1. namespace eval EveUtils {
  2.  
  3.     set tsvPath "tsv/"
  4.        
  5.         proc parsePairs { tsvName } {
  6.                 set f [open [file nativename $EveUtils::tsvPath$tsvName] r]
  7.                 while { [eof $f] == 0 } {
  8.                         set splitLine [split [gets $f] "\t"]
  9.                         set pairMap([lindex $splitLine 0]) [lindex $splitLine 1]
  10.                 }
  11.                
  12.                 # Return array populated with A:B pairs
  13.                 return [array get pairMap]
  14.         }
  15.        
  16.         proc insertCommas { num {sep ,} } {
  17.                 while { [regsub {^([-+]?\d+)(\d\d\d)} $num "\\1$sep\\2" num] } {}
  18.                 return $num
  19.         }

Replies to Re: Untitled rss

Title Name When
Re: Re: Untitled Diminutive Parakeet 11 Years ago.

Reply to "Re: Untitled"

Here you can reply to the paste above