in reply to Re: sub-routines
in thread sub-routines

Your code doesn't make any sense. You're manipulating all the lines of the input, and then you discard them. Also, your replace subroutine just returns the number of arguments passed.

Abigail