Only 'word' charaters (0-9a-zA-Z_), are valid characters in variable names so non-word characters are assumed to _not_ be part of the variable name. your open statement should work as you expect. If you are paranoid, or the variable is followed by a word character (such as $title_html) then you can surround the variable name with braces to disambiguate it.
And when you open a file for read and write, you have to use '+<' rather than '+>', otherwise you overwrite the file before you have a change to read from it (unless that's what you want to do).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.