title: Building a hash from lines input
body: <p>Given the lines with a colon as a separator -</p>
  
  <pre><code>1:s11-base:running:/zones/s11-base:3f9d522c:solaris:excl:-:none:&lt;br&gt;
  2:s11-template:running:/zones/s11-template:ce57a4db:solaris:excl:-:none:&lt;br&gt;
  ...
  </code></pre>
  
  <p>how can I create a hash like </p>
  
  <pre><code>"zoneid" =&gt; "1",
  "zonename" =&gt; "s11-base",
  "state" =&gt; "running",
  </code></pre>
  
  <p>next hash</p>
  
  <pre><code>"zoneid" =&gt; "2",
  "zonename" =&gt; "s11-template",
  "state" =&gt; "running",
  </code></pre>
  
  <p>and so on.</p>
  
  <p>I want to iterate over all lines, and assign the specific value to the keys from each line.</p>