Path: news.cs.au.dk!not-for-mail From: Sascha Kimmel Newsgroups: comp.lang.beta Subject: Re: CGI in BETA Date: 19 Jun 2000 14:27:48 -0000 Organization: University of Aarhus, Department of Computer Science (DAIMI) Lines: 63 Approved: mailtonews@cs.au.dk Distribution: world Message-ID: <20000619142748.5596.qmail@noatun.mjolner.dk> Reply-To: Sascha Kimmel NNTP-Posting-Host: daimi.cs.au.dk X-Trace: xinwen.cs.au.dk 961424879 284140 255.255.255.255 (19 Jun 2000 14:27:59 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 19 Jun 2000 14:27:59 GMT Xref: news.cs.au.dk comp.lang.beta:12432 Erik Corry said: > 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 :-) OK OK OK OK :) And what about this? :) : -------------X<------------------------------------------------- ($sec,$min,$hour,$mday,$mon,$year,$wkday,$yday,$isdst) = localtime(time); $mon++; $year=$year+1900; print < > 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 :-) Good luck :) You may want to have a look @ the PHP source available @ http://www.php.net :) Regards, Sascha Kimmel