Ron Grabowski <[EMAIL PROTECTED]> wrote:

> Like I said in my first email, heredocs cannot interpolate
> methods,subroutines, or functions. The Write() method of the
> $Response object will not be handeling as expected in a
> heredoc. I usually do this:
> 
> my $city = $Request->Form('city')->{Item};
> 
> $Response->Write(qq|
> 
>  poor man's heredoc
>  $city
> 
> |);

There's no difference between what can be interpolated into a 
here-doc and what can be interpolated into qq() or "".  You 
could just as well write

    $Response->Write(<<EOT);

    honest-to-goodness heredoc
    $city
 
    EOT

(without the indenting, of course).

-- 
Keith C. Ivey <[EMAIL PROTECTED]>
Washington, DC
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to