From: dblack@... Date: 2002-12-02T01:11:26+09:00 Subject: Re: HELP version 1.73 Hi -- On Mon, 2 Dec 2002, Shannon Fang wrote: > Hi > > Urgent... I just installed ruby 1.73, some strange thing happened pls > read the following warning message: > > ./test.rb:90: warning: string pattern instead of regexp; metacharacters > no longer effective > > While test.rb:90 is: > > ha=line.split("\s*:\s*") > > Is there some fundamental change taking place? Do I need to revert to > version 1.67? I have no problem there... Well, judging from the warning message, I'd say that in 1.7.3, metacharacters are no longer effective in string arguments to String#split :-) Use a regular expression instead: ha = line.split(/\s*:\s*/) David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav