Giter Site home page Giter Site logo

perl6-tutorial-cn's Introduction

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

perl6-tutorial-cn's People

Contributors

hwding avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.