title: How to get strings out of a larger string in Perl
body: <p>I have several conditions that I have stored in a string under the variable $conditions. The string would look something like this  </p>
  
  <pre><code>"s(job_name1) or s(job_name2) or s(job_name3) and s(job_name4)"
  </code></pre>
  
  <p>What I would like to do is just get each job name and sore it in a temporary variable. Right now I have the following, but my gut feeling says that that will not work. </p>
  
  <pre><code>@temp = split(/(s()\ orand)/, $conditions)
  </code></pre>
  
  <p>Any ideas on how to do this?</p>