没有合适的资源?快使用搜索试试~ 我知道了~
首页Learning Perl 6
Learning Perl 6
需积分: 10 80 浏览量
更新于2023-05-30
评论
收藏 5MB PDF 举报
Learning Perl 6: Keeping the Easy, Hard, and Impossible Within Reach
资源详情
资源评论
资源推荐

brian d foy
Learning
Perl 6
KEEPING THE EASY, HARD, AND IMPOSSIBLE WITHIN REACH


brian d foy
Learning Perl 6
Keeping the Easy, Hard, and Impossible
Within Reach
Boston Farnham Sebastopol
Tokyo
Beijing Boston Farnham Sebastopol
Tokyo
Beijing

978-1-491-97768-2
[LSI]
Learning Perl 6
by brian d foy
Copyright © 2018 brian d foy. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (http://oreilly.com/safari). For more information, contact our corporate/insti‐
tutional sales department: 800-998-9938 or corporate@oreilly.com.
Editor: Jeff Bleiel
Production Editor: Nicholas Adams
Copyeditor: Rachel Head
Proofreader: Kim Cofer
Indexer: Lucie Haskins
Interior Designer: David Futato
Cover Designer: Karen Montgomery
Illustrator: Rebecca Demarest
September 2018: First Edition
Revision History for the First Edition
2018-08-24: First Release
See http://oreilly.com/catalog/errata.csp?isbn=9781491977682 for release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc. Learning Perl 6, the cover image, and
related trade dress are trademarks of O’Reilly Media, Inc.
The views expressed in this work are those of the author, and do not represent the publisher’s views.
While the publisher and the author have used good faith efforts to ensure that the information and
instructions contained in this work are accurate, the publisher and the author disclaim all responsibility
for errors or omissions, including without limitation responsibility for damages resulting from the use of
or reliance on this work. Use of the information and instructions contained in this work is at your own
risk. If any code samples or other technology this work contains or describes is subject to open source
licenses or the intellectual property rights of others, it is your responsibility to ensure that your use
thereof complies with such licenses and/or rights.

Table of Contents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
1.
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Why Perl 6? 1
First Steps with the REPL 2
Reading the Documentation 4
Basic Syntax 4
Terms 5
Operators and Expressions 5
Statements 8
Blocks 8
Comments 9
Unspace 10
Objects and Classes 10
Variables 11
Simple Output 13
Lexical Scope 13
Predefined Variables 14
Making and Running a Program 15
Summary 16
2.
Number Guessing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Binding and Assignment 17
A MAIN Program 18
Program Arguments 19
Prompting for Values 21
Literal Numbers 22
Formatting Numbers 23
iii
剩余473页未读,继续阅读














安全验证
文档复制为VIP权益,开通VIP直接复制

评论0