The end of the here-doc must be a line that contains exactly and only the string that you gave at the start, excluding the quotes (if any) and the semi-colon.$mystring .= << "START"; # semi-colon needed here <XML version="" attribute2="" ...blah START # Don't put a semi-colon on that line (or a comment or anything else).
In reply to Re: appending xml to string
by graff
in thread appending xml to string
by shreya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |