Hi -- On Tue, 4 Feb 2003, Minero Aoki wrote: > K.Kosako proposed a new keyword `once' to resolve such kind of > problems. For example, following program creates a string object > only once (as of program #3). > > ARGF.each do |line| > print line if line.index(once 'PATTERN') > end > > Matz considers that the better plan is to make string literal create > an object only once. Is %L already taken? :-) If not, maybe something like: print line if line.index(%L{PATTERN}) would be feasible. David -- David Alan Black home: dblack / candle.superlink.net work: blackdav / shu.edu Web: http://pirate.shu.edu/~blackdav