in reply to appending xml to string
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).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: appending xml to string
by shreya (Novice) on Nov 17, 2006 at 22:21 UTC |