home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!gatech!darwin.sura.net!convex!rdavis
- From: rdavis@convex.com (Ray Davis)
- Subject: Re: insertion of non-formated strings
- Message-ID: <rdavis.713726071@connie.de.convex.com>
- Sender: usenet@convex.com (news access account)
- Nntp-Posting-Host: connie.de.convex.com
- Organization: CONVEX Computer Corporation, Richardson, Tx., USA
- References: <1992Aug12.215321.2136@terminator.cc.umich.edu>
- Date: Thu, 13 Aug 1992 17:14:31 GMT
- X-Disclaimer: This message was written by a user at CONVEX Computer
- Corp. The opinions expressed are those of the user and
- not necessarily those of CONVEX.
- Lines: 25
-
- normanb@citi.umich.edu (David R. Richardson) writes:
-
- >What is the proper way to operate on strings that might not
- >be well formatted -- strings that might contain quotations,
- >braces, spaces, etc.?
-
- >foreach i [exec scan] {
- > .frame.list insert end $i
- >}
-
- Try this...
-
- set fd [open "| scan" r]
- while {![eof $fd]} {
- gets $fd line
- if {[string length $line]} {
- .ls.list insert end $line
- }
- }
- close $fd
-
- Are you doing the very thing I've been thinking of? Making a
- tk based tool for mh? Maybe we can share ideas.
-
- Ray
-