Mailing List Archive

Here docs inside of [- -]
Does HTMLEmbperl support here documents inside [- -]'s or at all?

I have a here document that works in plain old perl but HTMLEmbperl
balks.

The basic gist of the code is this:

<CODE>
my $msg=<<eofMsg;
some text
eofMsg

$application->notify_applicant($application,$msg);
</CODE>

what I see in the errors and logs is the following:

[17619]ERR: 24: Line 196: Error in Perl code: (in cleanup) Uncaught
exception
from user code:
Excessively long <> operator at /some_path/somefile.epl
line 198.
eval 'package HTML::Embperl::DOC::_1 ; sub {
my $msg =<notify_applicant($application,$msg);

--
__________________________________________________________
Mr. Erich L. Markert emarkert@pace.edu
Computer Learning Center TEL (914)422-4328
Pace University
1 Martine Ave
White Plains, New York 10606-1932

Those who do not understand Unix are condemned to reinvent it, poorly.
-- Henry Spencer
RE: Here docs inside of [- -] [ In reply to ]
>
> Does HTMLEmbperl support here documents inside [- -]'s or at all?
>

yes

you may have trouble if you have \r\n as line separator from your editor. In
this case write

my $msg= q{
some text
} ;

instead.

Gerald