From: Christian Kaiser Date: 2004-04-17T05:14:10+09:00 Subject: Re: "bad file descriptor" in Win32 DLL Joel, thanks - that's a nice idea! Christian "Joel VanderWerf" wrote in message news:408035F7.9090401@path.berkeley.edu... > Christian Kaiser wrote: > > BTW: the code before had sequences like: > > > > return true if sSubject =~ /abcxyz/ > > return true if sSubject =~ /d/ > > return true if sSubject =~ /ef/ > > .... > > > > Will that now need that I write > > > > return true if /abcxyz/ =~ sSubject > > return true if /d/ =~ sSubject > > return true if /ef/ =~ sSubject > > .... > > > > which is less readable as the formatting becomes ragged? OK, I can create an > > array of Regexp's, but for 3 lines this is overkill. > > Another option: > > case aSubject when /abcxyz/, /d/, /ef/: return end > >