Path: news.cs.au.dk!not-for-mail From: nospam2159@cs.au.dk (Peter von der =?iso-8859-1?q?Ah=E9?=) Newsgroups: comp.lang.beta Subject: Re: CGI in BETA Date: 19 Jun 2000 19:19:13 +0200 Organization: Computer Science Department of the University of Aarhus Lines: 31 Message-ID: References: <20000619142748.5596.qmail@noatun.mjolner.dk> NNTP-Posting-Host: ufleku.cs.au.dk Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: xinwen.cs.au.dk 961435153 289081 255.255.255.255 (19 Jun 2000 17:19:13 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 19 Jun 2000 17:19:13 GMT X-Attribution: Ahe User-Agent: Gnus/5.0806 (Gnus v5.8.6) Emacs/20.6 Xref: news.cs.au.dk comp.lang.beta:12436 >>>>> "SK" == Sascha Kimmel writes: SK> -------------X<------------------------------------------------- SK> ($sec,$min,$hour,$mday,$mon,$year,$wkday,$yday,$isdst) = SK> localtime(time); $mon++; $year=$year+1900; print < here from $ENV{'HTTP_REFERER'}, your IP-address is SK> $ENV{'REMOTE_ADDR'}, your hostname ist $ENV{'REMOTE_HOST'}, your SK> browser is $ENV{'HTTP_USER_AGENT'} and currently it's $hour SK> o´clock, $min minutes and $sec seconds on $mday.$mon.$year! EOF SK> -------------X<------------------------------------------------- SK> What if you have many many values? Not easy in BETA, isn't it? :) I think you miss the point. No one argues that perl is better at handling text and regular expression than BETA. But BETA can be used for CGI programming - all you need for this is an executable which can read environment variables and knows how to print mime headers. As for the speed of the above, please note that this would be faster: print "You came here from ", $ENV{'HTTP_REFERER'}, " your IP-address is ", $ENV{'REMOTE_ADDR'}, ", your hostname is ", ...; So it might be more convenient but does not lead to more efficient programs especially for many, many values... -- YMMV