home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!nestroy.wu-wien.ac.at!dec4.wu-wien.ac.at!neumann
- From: neumann@dec4.wu-wien.ac.at (Gustaf Neumann)
- Newsgroups: comp.lang.perl
- Subject: Re: In 5.0, are we gonna get...
- Date: Thu, 17 Dec 92 22:47:15 MET
- Organization: WU-Wien
- Lines: 23
- Distribution: world
- Message-ID: <7246288358-314904@dec4.wu-wien.ac.at>
- References: <1992Dec14.043835.23009@reed.edu> <1992Dec14.192007.7534@wdl.loral.com> <2B2D2498.874E@tct.com>
- NNTP-Posting-Host: dec4.wu-wien.ac.at
-
- In article <2B2D2498.874E@tct.com> from [Tue, 15 Dec 1992 00:19:36 GMT] you wrote:
- |> > $sum = reduce {$a+$b} 1,34,$x,45,-8,0.1;
- |>
- |> Interesting. That operation would be a generalization of join:
- |>
- |> $x = join(":", @foo);
- |>
- |> and
- |>
- |> $x = reduce {$a.":".$b} @foo;
-
- how about
-
- $sum = eval join('+ ',1,34,$x,45,-8,0.1);
-
- ok, the string conversion could be avoided, but you can do it now...
- -gustaf
- --
- Gustaf Neumann neumann@dec4.wu-wien.ac.at, neumann@awiwuw11.bitnet
- Vienna University of Economics and Business Administration
- Augasse 2-6, A-1090 Vienna, Austria
- Tel: +43 (222) 31-336 x4533 Fax: 347-555
-
-