Oliver Bleckmann said:
if ( $inh3 = s/"\>"/"\>\n"/sgoi)
You are requiring a 3-character substring:
double quote
closing angle bracket
double quote
If your angle brackets don't have quote characters, then the
pattern will not match.
If the pattern does not match then s/// does not do anything.
You need to write a pattern that will match rather than fail,
take out the double quotes.
And the backslashes, angle brackets are not special in regexes
nor in strings.
And the s///s option, it does not do anything when there is no
dot (.) in your pattern.
And the s///o option, it does not do anything when there is no
variable part in your pattern.
And the s///i option, it does not do anything when there are no
letters in your pattern.
Do not throw options onto the end willy nilly.
Use the ones you need, don't use the ones you don't need.
To do that, you will need to understand what each does, see the docs.