in reply to Search and replace the word in Column 16
It's also possible (obviously relies on assumptions) for you to get away with just dropping the /g modifier .. then it would only break if "STOCK" also appeared in columns 1-15 somewhere, but would not break if it was in column 17+.$idx =~ s/^((?:[^|]*\|){15}[^|]*)STOCK/$1BOXXE/;
|
|---|