Perl 6 Now: The Core Ideas Illustrated With Perl 5

Scott Walters

  • 出版商: Apress
  • 出版日期: 2004-12-16
  • 售價: $1,590
  • 貴賓價: 9.5$1,511
  • 語言: 英文
  • 頁數: 424
  • 裝訂: Paperback
  • ISBN: 1590593952
  • ISBN-13: 9781590593950
  • 相關分類: Perl 程式語言
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

商品描述

Descriptions:

Perl 6 Now: The Core Ideas Illustrated with Perl 5 is perfect for those eager to see where Perl is headed, Perl 5 programmers who want to know that their favorite tricks will still work in some form, and programmers wishing to open their minds to advanced programming topics.

Perl 6 generalizes the language, making it more extensible, eliminating longstanding pitfalls, and adding new concepts. Thanks to some clever people and impressive efforts, many of these new features work in Perl 5, so you can start using them now in production-level code.

The book teaches the basics from a Perl 6 perspective, touching on variable interpolation, datastructure use, object construction, threads, closures, symbol tables, and other core features. It then introduces continuations, coroutines, binding (or aliases), hyper operators that work on lists of data at once, set operators that work on complex datatypes, lightweight multidimensional arrays, strong type checking, autoboxing, precompilation, automatic module dependency installation, and more.

Though Perl 6 changes the fundamental syntax in some areas, Perl 5 code isn't left in the lurch. Thanks to PONIE, code from both versions may coexist in a single program. You’ll need to adjust only a few habits and learn a few new things, and this early adopter’s guide will help you do these things.

 

Table of Contents:

Part 1 – Basics, Data Flow, and Program Flow
Chapter 1 – The Programmer’s Introduction to the Perl Computer
Chapter 2 – Perl 6 Road Map
Chapter 3 – Stricture by Default

Part 2 – Variables, Arrays, and Control Structures
Chapter 4 – Text, Numbers, and Other Constant Data
Chapter 5 – Names, Containers, and Values
Chapter 6 – Operators
Chapter 7 – Multidimensional Arrays
Chapter 8 – Data Structures
Chapter 9 – Switch
Chapter 10 – Block Structure
Chapter 11 – Subroutines

Part 3 – Threads and Objects
Chapter 12 – CPAN Modules
Chapter 14 – Objects
Chapter 15 – Exceptions
Chapter 16 – Type Safety
Chapter 17 – Multithreading

Part 4 – Computer Science
Chapter 18 – Any and All
Chapter 19 – Lexical Closures
Chapter 20 – Continuations
Chapter 21 – Coroutines
Appendix – Perl 5 vs. Perl 6 Operators

商品描述(中文翻譯)

描述:
《Perl 6 Now: The Core Ideas Illustrated with Perl 5》適合那些渴望了解Perl的未來方向的人,希望知道他們最喜歡的Perl 5技巧是否仍然有效的Perl 5程式設計師,以及希望開放思維對高級程式設計主題感興趣的程式設計師。

Perl 6將語言泛化,使其更具擴展性,消除長期存在的問題,並添加新的概念。由於一些聰明的人和令人印象深刻的努力,許多這些新功能在Perl 5中也可以使用,因此您可以立即在生產級代碼中開始使用它們。

本書從Perl 6的角度教授基礎知識,涉及變量插值,數據結構使用,對象構造,線程,閉包,符號表和其他核心功能。然後介紹了繼續,協程,綁定(或別名),一次對列表數據進行操作的超級運算符,對複雜數據類型進行操作的集合運算符,輕量級多維數組,強大的類型檢查,自動盒裝,預編譯,自動模塊依賴安裝等。

儘管Perl 6在某些領域改變了基本語法,但Perl 5代碼並不被拋棄。由於PONIE的存在,兩個版本的代碼可以共存於一個程序中。您只需要調整一些習慣並學習一些新知識,這本早期採用者指南將幫助您完成這些事情。

目錄:
第1部分 - 基礎知識、數據流和程序流
第1章 - 程序員對Perl計算機的介紹
第2章 - Perl 6路線圖
第3章 - 默認的嚴格模式

第2部分 - 變量、數組和控制結構
第4章 - 文本、數字和其他常量數據
第5章 - 名稱、容器和值
第6章 - 運算符
第7章 - 多維數組
第8章 - 數據結構
第9章 - 開關
第10章 - 塊結構
第11章 - 子程序

第3部分 - 線程和對象
第12章 - CPAN模塊
第14章 - 對象
第15章 - 异常
第16章 - 類型安全
第17章 - 多線程

第4部分 - 計算機科學
第18章 - 任何和所有
第19章 - 词法闭包
第20章 - 繼續
第21章 - 協程
附錄 - Perl 5與Perl 6運算符