foreach (@lines) { s/apple/orange/g }