Path: news.cs.au.dk!not-for-mail From: Erik Corry Newsgroups: comp.lang.beta Subject: CGI in BETA Date: 19 Jun 2000 14:18:33 GMT Organization: =?ISO-8859-1?Q?Mj=F8lner?= Informatics ApS Lines: 38 Distribution: world Message-ID: <8ila3p$8lge$1@xinwen.cs.au.dk> References: <20000619135533.4331.qmail@noatun.mjolner.dk> NNTP-Posting-Host: amigo.cs.au.dk X-Trace: xinwen.cs.au.dk 961424313 284174 255.255.255.255 (19 Jun 2000 14:18:33 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 19 Jun 2000 14:18:33 GMT User-Agent: tin/pre-1.4-980818 ("Laura") (UNIX) (IRIX64/6.5 (IP27)) Xref: news.cs.au.dk comp.lang.beta:12430 Sascha Kimmel wrote: > In BETA it is IMPOSSIBLE to concatenate strings as in the most scripting > languages, which is mostly because BETA does not have a special character for > variables like "$", which Perl and PHP use, so something like the following > is impossible with BETA: > $thisstring="this"; > $string="Have a look at $thisstring, and afterwards have a look at > $thisstring!"; > In BETA you would need to do this the follwing way: > 'this'->thisstring[]; > 'Have a look at '->string[]; > thisstring[]->string.append; > ', and afterwards have a look at '->string.append; > thisstring[]->string.append; > '!'->string.append; How about 'this' -> thisstring; 'Have a look at %s, and afterwards have a look at %s!' -> string.putformat (# do thisstring[] -> s; thisstring[] -> s; #); > These are six lines in comparison to three lines in Perl! BETA is three lines too :-) > You can also use BETA REGEX (which is POSIX syntax) but because nobody :) > wants to use POSIX syntax and all :) people want to use PERL syntax this is > not used often I guess. I'm working on it :-) -- Erik Corry erik@arbat.com Ceterum censeo, Microsoftem esse delendam!