From: "Peña, Botp" Date: 2007-10-17T16:17:01+09:00 Subject: Re: Compound conditionals in case when statements? Syntax? From: Robert Klemme [mailto:shortcutter@googlemail.com] # case # when new_record && /^---\+\+ / =~ s oops, yes. That's what i get on pasting without thinkig (nor testing :) # Note the matching operator, otherwise $_ will be matched. # Note also, that it is superfluous to match the rest of the # string unless the content need to be further processed. # I'd probably also reverse the order since I assume # new_record is a local variable and that test is # likely faster than the regexp matching. indeed and many thanks. kind regards -botp