May 23, 2007 #1 snowingnow Programmer Joined Jun 1, 2006 Messages 32 Location CA what could happen if the string in split function is "" or null,for example, [split "" ^] or [split @null ^], what will be the result? Thanks
what could happen if the string in split function is "" or null,for example, [split "" ^] or [split @null ^], what will be the result? Thanks
May 23, 2007 #2 Bong Programmer Joined Dec 22, 1999 Messages 2,063 Location US Nothing is returned: Code: % set a [split "" ^] % set a % Part of the joy of Tcl is being able to test out just such things in the shell with no overhead. _________________ Bob Rashkin Upvote 0 Downvote
Nothing is returned: Code: % set a [split "" ^] % set a % Part of the joy of Tcl is being able to test out just such things in the shell with no overhead. _________________ Bob Rashkin