in reply to Re^2: split, manipulate, join
in thread split, manipulate, join

my $inrec='0;1;2?foo=duh;3;4;5;6;7;8;9;;;;;;';

You've already given some input data, presumably faked to the necessary degree. All you needed to do was to give a couple more fake input record instances and their corresponding output records to make the needed transformation(s) much more clear. No "customer sensitive" data need apply.


Give a man a fish:  <%-(-(-(-<

Replies are listed 'Best First'.
Re^4: split, manipulate, join
by jc.smith3 (Initiate) on Apr 11, 2015 at 01:32 UTC
    I thank everyone for their replies so far. I have updated the input examples. INREC1 does not meet the specs as the word ekey= is in not in elements2. INREC2 does meet the specs so it blanks the data following ekey= and moves the data it found to the end of the array. The thing to keep in mind is that I have 550 columns and I have to check 10 of those for 4 different words. If found I must blank what follows those words and then move the data I blanked to the end of the array.