Your version of Perl doesn't support the non-destructive substitution modifier (/r). Use the following:
print for map { s/\s+/$letter++ . ' '/e; $_ } @lines;
Will make that change in the original posting.
In reply to Re^3: raw data formatting
by Kenosis
in thread raw data formatting
by teamassociated
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |