@EXPORT= qw( XML_FOO XML_BAR ); open my $foo, '<', \< \$foo; open my $bar, '<', \< \$bar; # and so on... # Later in the implementation: $parser->parse_string(${XML_FOO()});