title: Ruby Do Multiple Things With Each Element of an Array
body: <p>I know that I can use </p>
  
  <pre><code>my_array = [1,2,3,4,5]
  my_array.each {|element| puts element}
  </code></pre>
  
  <p>to do something with each element of an array but what if I need to do several things with each element? It starts complaining when I try to put multiple statements in the block. What I am really looking for is something more like this:</p>
  
  <pre><code>my_array = [1,2,3,4,5]
  my_array.each |element| do
    #operation one involving the element
    #operation two involving the element
    ...
  end
  </code></pre>
  
  <p>Is there any good way to achieve this effect?</p>