in reply to process multiline text and print in desired format
It is very encouraging to see the overwhelming response received for the subject. I will go through all responses and try to write code & come back if any questions.
B/W i have seen an example in the web where one user removes all the leading and trailing space right after reading from the input data file. I tend to believe if that approach is taken one can avoid the "^\s*" repetition for all such match cases. Is that a good approach in general, does anyone see any hidden problems
ie, AFTER READING to FH something like belowTo avoid "^\s*"s/^\s+|\s+$//g
m/^\s*color m/^\s*overseas m/^\s*shipping
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: process multiline text and print in desired format
by kcott (Archbishop) on Mar 18, 2021 at 02:16 UTC |