[EMAIL PROTECTED] wrote:
> 
> I've written a short ASP page, 'HelloWorld.asp':
> 
> <head>
> <title>Hello World</title>
> </head>
> 
> Hello World! The time is <% Now %>
> 
> But when I try to test the page, I get the output below. Isn't Now a function
> supported by ASP?
> 
> Errors Output
> 
> Response::Now not defined at
> /usr/local/encap/perl-5.005.3/lib/site_perl/5.005/Apache/ASP.pm line 2171
>     Apache::ASP::Response::AUTOLOAD('Apache::ASP::Response=HASH(0x83584a4)')
> called at (eval 200) line 6
> 

My guess is that Now() is a VBScript function.  Apache::ASP
under mod_perl supports ASP with perl scripting only.
For more info check out: http://www.nodeworks.com/asp/

There's quite a few Time modules in CPAN.  Apache::ASP
requires HTTP::Date, so you could use that like:

<% use HTTP::Date qw(time2iso); %>
<head><title>Hello World</title></head>
Hello World! The time is <%= time2str() %><br>
Hello World! The time is <%= time2iso() %>

for this output:

Hello World! The time is Mon, 22 Nov 1999 01:16:10 GMT 
Hello World! The time is 1999-11-21 17:16:10

Not the use of <%= %> vs. your use of <% %> to insert
values into the ASP output. <% %> is used to run code blocks.

-- Joshua
_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks >> free web link monitoring   Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

Reply via email to