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
In reply to Re: Initialize constant with scalar
by davido
in thread Initialize constant with scalar
by ait
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |