minimal_perl_for_unix_and_linux_people.pdf

上传者: drjiachen | 上传时间: 2021-01-28 02:23:48 | 文件大小: 5.72MB | 文件类型: PDF
In this preface, I’ll tell you about the history of Minimal Perl and the origins of this book. THE HISTORY OF MINIMAL PERL The seeds of this book were sown many years ago, when I was building up my knowl- edge of Perl, the greatest programming language I’d ever encountered (before or since). While reading a variety of books on the subject, I was surprised that the authors felt obliged to delve into so many of the different but equivalent choices for expressing every basic operation in the language, as well as each of the syntactic variations for expressing any one of those choices. As an example, I’ve shown here some of the available choices for expressing in Perl the simple idea that B should be executed only if A is True (with those letters repre- senting arbitrary program elements). Both forward and backward variations for expressing the dependency are included:1 Although some are inclined to present symptoms like these of Perl’s complexity and redundancy as evidence of its “richness,” “versatility,” or “expressiveness,” many Perl novices would surely have a different reaction—that Perl is needlessly complex and too hard to learn. Minimal Perl was created to address these obstacles presented by Perl’s redundancy and complexity. By emphasizing Perl’s grep, sed, and awk-like features, and relying Forward Backward A and B; B if A; A && B; B if A; A and do { B }; do { B } if A; A && do { B }; do { B } if A; if (A) { B }; B if A; unless (!A) { B }; B unless !A; 1Before you despair, I should point out that Minimal Perl uses only 2 of these variations—which is all anybody needs! xx on concepts such as inputs, filters, and arguments, it allows Unix1 users to directly apply their existing knowledge to the task of learning Perl. So rather than being frustrated with Perl’s complexities and disappointed with its steep learning curve, they quickly and painlessly acquire the ability to write useful programs that can solve a wide variety of problems. My first publ

文件下载

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明