But value for colD is not captured correctly, as string in colD has sapces in between.my ($colA, $colB, $colC,$colD) = split( /\s+/, $line, 4);
If value for $colB = XYZ and $colD contains substring = Region , I need to replace the $colB from XYX to N/A.
There are many ways to do this. What did you try? How did it fail?
In reply to Re: Split lines in file to columns
by hippo
in thread Split lines in file to columns
by Magnolia25
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |