Skip to content

(Obsolete)Chinese Translation of The-Perl-Maven's-Perl-6-Tutorial: http://perl6maven.com/tutorial/toc.

Notifications You must be signed in to change notification settings

hwding/perl6-tutorial-cn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perl6 入门指导


译自 The-Perl-Maven's-Perl-6-Tutorial

关于此翻译

译文对原文表达不当之处做了适当的修改,在表达不清晰之处提供了译注,并优化了部分排版。
另外,由于历史原因原文中的部分内容可能出现因过时而导致的错误,在翻译时也会做相应的修正并附以译注。
对原文以及代码的修正会以PR的形式提交到网站镜像szabgab/perl6maven.com

关于原作者

欢迎关注原作者Gabor Szabo的新框架Bailador以及新书Web Application Development in Perl 6

总目录

第八章 Testing in Perl6

  • skip a test

第九章 Object Oriented Perl6

  • Simple Point class
  • Read/write attributes and accessors
  • Class Methods
  • Private Attributes
  • Method with parameters
  • Inheritence of classes
  • Classes in Perl 6

第十章 Perl6 Regexes

  • Regexes in Perl 6
  • Match digit
  • Match Any character
  • Escape characters
  • Spaces in regex
  • End of string anchors
  • Ranges
  • Regex Arithmetic
  • Regex Quantifier
  • Quantifier 2
  • Match several words
  • Alternates
  • Match object
  • Capture
  • Named Regex
  • Capture with quantifier
  • Reuse capture
  • Word boundary
  • Rules
  • Tokens
  • Replace
  • Grammar
  • Grammar with error handling
  • Grammar that is easier to extend
  • Grammar subclass

第十一章 Shell to Perl6

  • Intro
  • Running external command from Perl 6 (shell, QX)
  • Unix commands in Perl 6
  • awk
  • cat
  • cd in Perl 6
  • chmod
  • chown
  • cmp
  • compress
  • cut
  • date
  • diff
  • df
  • dos2unix
  • du
  • file
  • find
  • grep
  • gzip
  • head
  • kill
  • ln
  • ls or dir in Perl 6
  • mkdir
  • mv
  • ps
  • popd
  • pushd
  • Current Working Directory in Perl 6 (cwd, pwd, $*CWD)
  • rmdir
  • rm
  • sed
  • sort
  • tail
  • tar
  • touch
  • uniq
  • unix2dos
  • wc
  • who
  • zip
  • Other UNIX command

第十二章 Appendix

  • grok and App::Grok
  • Using 3rd party Perl 6 modules
  • Timestamp and elapsed time in Perl 6
  • Thanks

第十三章 Introduction to Perl6

  • Getting started
  • Other resources
  • Installing Rakudo Perl 6
  • Development Environment
  • Running Rakudo
  • Hello World
  • Comments
  • POD - Plain Old Documentation

第十四章 Subroutines

  • Subroutines in Perl 6
  • Simple definition with required parameters
  • Subroutine with arbitrary number of parameters
  • Passing arrays and hashes
  • Multiple signatures
  • Optional parameters
  • Named only parameters
  • No parameter definition - perl 5 style
  • Fibonacci
  • Creating Operators
  • Create your own operator

第十五章 Modules in Perl6

  • Exporting subs from modules

Releases

No releases published

Packages

No packages published