I understand the difference now. Thank you. Is it more simple if I slurp the entire thing in and match the start end and replace the value as compared to doing a tie::file ?
Also I am sorry for the noobish question, but is there a way to get into the match's block and do the replace in a single regex.