Perl 6 Now: The Core Ideas Illustrated with Perl 5

Front Cover
Apress, Dec 16, 2004 - Computers - 424 pages

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 adopters guide will help you do these things.

Table of Contents The Programmer’s Introduction to the Perl Computer Programming Language Perl 6 Road Map Stricture by Default Text, Numbers, and Other Constant Data Names, Containers, and Values Operators Multidimensional Arrays Data Structures Switch Block Structure Subroutines CPAN Modules Objects Exceptions Type Safety Multithreading Any and All Lexical Closures Continuations Coroutines
 

What people are saying - Write a review

We haven't found any reviews in the usual places.

Contents

The Programmers Introduction to the Perl Computer Programming Language
3
Perl 6 Road Map
11
Stricture by Default
19
Text Numbers and Other Constant Data
33
Names Containers and Values
55
Operators
87
Multidimensional Arrays
105
Data Structures
127
Objects
241
Exceptions
283
Type Safety
291
Multithreading
313
Any and All
335
Lexical Closures
345
Continuations
353
Coroutines
363

Switch
169
Block Structure
183
Subroutines
199
CPAN Modules
233
Perl 5 vs Perl 6 Operators
375
Index
381
Copyright

Other editions - View all

Common terms and phrases

About the author (2004)

Scott Walters has been programming computers since 1984 (professionally since 1996). He built the corporate intranet at Mayo Clinic in Scottsdale, Arizona, and did pretty much everything for two startups. For fun, he runs http://perldesignpatterns.com, does CGI scripting for the NetBSD Project and http://projects.netbsd.org, maintains several CPAN modules, and helps coordinate Perl Mongers meetings for Phoenix Perl Mongers.

Bibliographic information