in reply to Initialize constant with scalar
use constant XML_FOO => <<FOO; #XML CODE HERE FOO
While you're at it, wrap FOO in non-interpolating quotes so that if your XML contains something that looks like an identifier you don't get a "Global symbol "$xyz" requires explicit package name at..." error.
use constant XML_FOO => <<'FOO';
Dave
|
|---|