title: Extract a string from one line and put it in the precceding line (Perl)
body: <p>I don't have much experience in programming with perl but have to solve a heavy problem.I have data in this format:</p>
  
  <pre><code>*IDENTIFIER A  
  ABCDEFGHIJKLMNOPQRSTVUWXYZ  
  3. line  
  4. line  
  *IDENTIFIER B  
  ABCDEFGHIJKLMNOPQRSTVUWXYZ  
  3. line  
  4. line  
  ...  
  </code></pre>
  
  <p>I want to delete the first 5 symbols from the line under the identifier and add these to the identifier line. Each identifier starts with a *. The new file should look like:  </p>
  
  <pre><code>*IDENTIFIER A:ABCDE  
  FGHIJKLMNOPQRSTVUWXYZ  
  3. line  
  4. line  
  *IDENTIFIER B:ABCDE  
  FGHIJKLMNOPQRSTVUWXYZ  
  3. line  
  4. line  
  ...    
  </code></pre>
  
  <p>I would be very happy about every kind of help. THX</p>