title: Convert string to array in Perl
body: <p>I want to convert a string into an array. I have something like this:</p>
  
  <pre><code>my $binvalue = 10101010101010101010101010101010;
  </code></pre>
  
  <p>And, I want to have that in an array...</p>
  
  <pre><code>my @array = (1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0)
  </code></pre>
  
  <p>And I want to do that to be able to index any value and change it.
  Like if the most significant bit is 1, change it to 0.</p>