def check ((@line =~ /a/) != nil ? @line =~ /b/ : @line =~ /c/) != nil endthan puzzle out the corresponding regular expression and that it would be a nice chance to do something interesting with one of the eval methods. If you interpreted it differently, that is fine. If you want to redo it using this interpretation that is fine also. Its all about getting practice using Ruby.
< REUTERS TOPICS= ... NEWID="1234" >and ends with a line
< /REUTERS >[note: space added so web browser wouldn't confuse example with a tag it should process.] Create files for each of these articles, naming the files by the NEWID (for example, the above would go in 1234.sgm). In the separate files, we no longer have need of the REUTERS tags above, but we do what to keep the other tags. Because we are academics, we also want to insert at the head of each file the message: