title: Delete the first character of array elements in Perl
body: <p>I would like to remove the first character from a the elements of an array in a Perl script. </p>
  
  <p>I have this line of script: </p>
  
  <pre><code>@dash = split /\s+/, $dash;
  </code></pre>
  
  <p>The variable "dash" is read from a particular row of my file: Example</p>
  
  <pre><code>21 A10 A11 A12 A13 .. 
  </code></pre>
  
  <p>Then I have tried to push these values to my hash called "flowers"</p>
  
  <pre><code>for $i (1..$#dash) {
      push(@flowers, $line[$i]);
  }
  </code></pre>
  
  <p>This seems to work for what I need in my subsequent lines of script but I have found out that <code>$dash</code> contains unwanted character in front of each values: </p>
  
  <pre><code>A10 A11 A12 A13 ..
  </code></pre>
  
  <p>instead of</p>
  
  <pre><code>10 11 12 13 .....
  </code></pre>
  
  <p>but I wanted <code>@flowers</code> to contain:</p>
  
  <pre><code>10 11 12 13 ....
  </code></pre>
  
  <p>How can I delete the first character <em>Before</em> I pushed it to my hash (@flowers)</p>
  
  <pre><code>chop(@flowers); 
  </code></pre>
  
  <p>could have worked but it only chops out the last character. When I tried to use </p>
  
  <pre><code>substr($dash, 0, 2)
  </code></pre>
  
  <p>It does produce <code>10</code>, but all the rest of the values <code>A11 A12 A13</code> is no longer in my <code>@flowers</code>.</p>
  
  <p>Any help is appreciated.</p>