Programming in Perl Style

这是 ABC Perl Programming 之后的第二部分。名称改成现在这样是因为一本书,叫做 Higher Order Perl 。这本书的作者提到很多 Perl 的程序员在用 Perl 写 C 的程序。这是一件很不幸的事情。当然了,所谓高手可以用任何方法做任何事情。但是,既然是在学习一个语言,至少要有三分样吧。

下面是 Higher-Order Perl 这本书前言的第一段。

A well-known saying in the programming racket is that a good Fortran programmer
can write Fortran programs in any language. The sad truth, though,
is that Fortran programmers write Fortran programs in any language whether
they mean to or not. Similarly, we, as Perl programmers, have been writing C
programs in Perl whether we meant to or not. This is a shame, because Perl is
a much more expressive language than C. We could be doing a lot better, using
Perl in ways undreamt of by C programmers, but we’re not.







































posted on 2011-02-20 00:26  David Young 杨博华  阅读(1131)  评论(2编辑  收藏  举报

导航