"Philip " wrote:
>
> Is there a way that I can use XMLSubs inside strings (it comes in useful
> when I have to generate output that is not meant to be printed
> immediately, such as when using Net::SMTP to send an e-mail message)?
>
> This script will work:
>
> <my:h1>Hello</my:h1>
>
> but this will cause an error of "String found where operator expected":
>
> print "<my:h1>Hello</my:h1>";
>
No, though you could call your XMLSubs yourself directly
by using the perl version...
print &my::hi({}, 'Hello');
I know its not the same, I'm just trying to be helpful.
You might also consider doing something like:
my $output_ref = $Response->TrapInclude('mail.inc', @args)
$Server->RegisterCleanup(sub {
$Server->Mail(Body => $$output_ref)
});
I'm only suggesting this because it seems you want to
generate email output from an ASP script, so you can
use TrapInclude() for this, capture the output and
process it through your favorite mailer.
--Josh
_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NodeWorks <- Web Link Checking Huntington Beach, CA USA
http://www.nodeworks.com 1-714-625-4051
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]