in reply to Re: match digit, followed by hyphen, followed again by digit - then add whitespaces and replace in file (updated x2)
in thread match digit, followed by hyphen, followed again by digit - then add whitespaces and replace in file

This is brilliant! However the output now needs further formatting as it's printed with brackets etc. I tried adding a print statement but dd still prints everything. A bit confusing :(
  • Comment on Re^2: match digit, followed by hyphen, followed again by digit - then add whitespaces and replace in file
  • Download Code

Replies are listed 'Best First'.
Re^3: match digit, followed by hyphen, followed again by digit - then add whitespaces and replace in file
by haukex (Archbishop) on Aug 17, 2017 at 13:25 UTC
    However the output now needs further formatting as it's printed with brackets etc. I tried adding a print statement but dd still prints everything.

    You can print @cols any way you want, using a regular print or printf, instead of Data::Dump, which is just a debugging aid. If you could show what code you are trying and what output format you expect, we could help better (How do I post a question effectively?). Also, note I updated my node right around the time you replied, check out the update too.