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: I feel a bit discriminated Date: 19 Jun 2000 19:03:57 +0200 Organization: Computer Science Department of the University of Aarhus Lines: 39 Message-ID: References: <20000619135533.4331.qmail@noatun.mjolner.dk> NNTP-Posting-Host: ufleku.cs.au.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: xinwen.cs.au.dk 961434237 288585 255.255.255.255 (19 Jun 2000 17:03:57 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 19 Jun 2000 17:03:57 GMT X-Attribution: Ahe User-Agent: Gnus/5.0806 (Gnus v5.8.6) Emacs/20.6 Xref: news.cs.au.dk comp.lang.beta:12435 >>>>> "SK" == Sascha Kimmel writes: SK> In BETA it is IMPOSSIBLE to concatenate strings as in the most [...] SK> In BETA you would need to do this the follwing way: [...] SK> thisstring[]->string.append; OK, so please explain the big difference between appending to a string and concatenation :-) Most of the time spend in coping strings in memory as result of string concatenation could be eliminated if you have to think before you do: print $string1.$string2; or print "$string1.$string2"; As both of these are inefficient compared to: print $string1, $string2; or printf "%s%s", $string1, $string2; unless perl has very clever optimizations. Thus I think that you does not need string interpolation in BETA, as this tends to make programs inefficient. Think of strings as immutable objects, and you'll write more efficient program. -- YMMV