in reply to Search and replace the word in Column 16

or perhaps

$rec =~ s/([\w|]{15})STOCK/$1BOXXE/;

update
See Ieronim's regex below

  • Comment on Re: Search and replace the word in Column 16

Replies are listed 'Best First'.
Re^2: Search and replace the word in Column 16
by Ieronim (Friar) on Jul 25, 2006 at 12:24 UTC
    This won't work. Be stricter, this will work for the 101st column too.

         s;;Just-me-not-h-Ni-m-P-Ni-lm-I-ar-O-Ni;;tr?IerONim-?HAcker ?d;print