perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fagyal, Csongor" <conc...@conceptonline.hu>
Subject Re: Newbie alert, why this does not work
Date Wed, 01 Oct 2003 13:32:32 GMT
Hi Brent,

><html>
><title> sample </title>
><body>
><% $Response->Write ("Hello World") =Now () %>
></body>
></html>
> 
>  
>
What does
$Response->Write("Hello World") = Now()
supposed to do??

First, $Response->Write("Hello World") is not supposed to be a 
leftvalue, so you cannot (shouldn't) assign a value to it.
But your biggest problem is that there is now built-in function called 
"Now" in Perl, as your page says "Undefined subroutine 
&Apache::ASP::Demo::Now called ..."

I think you want
<%
    $Response->Write("Hello World");
    $Response->Write(localtime(time));
%>

...or something like that.


- Cs.


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Mime
View raw message