fork(1) download
  1. foreach n 99\ -123 {
  2. set expr [join [regexp -all -inline {(?:^-)?\d} $n] +]
  3. set expr [join "$n [string length $n] ($expr)" +]
  4. puts $expr=[expr $expr]
  5. }
Success #stdin #stdout 0s 15904KB
stdin
Standard input is empty
stdout
99+2+(9+9)=119
-123+4+(-1+2+3)=-115