I'll keep this post short. Three important issues:
- s/// returns boolean, not the modified string.
- An s-modifier is needed on the s/// to make it match elements with newlines in them.
- The s/// modifies @tempArray. Perhaps this is wanted, but probably not.
ihb