develooper Front page | perl.perl6.language | Postings from May 2006

best of perl6 for tutorial

Thread Next
From:
herbert breunung
Date:
May 12, 2006 01:40
Subject:
best of perl6 for tutorial
Message ID:
44644A0F.1060702@web.de
like i wrote here before i startet to write an perl6tutorial.
appendix C is made as an appetizer with some code examples in perl 5 vs 
perl 6 equivalent.
the examples are so far:

- junctive and chained comparsions, err operator
- given
- sub signature
- minimal class with autogenerated getter/setter
- for-loops with several iterators and iterations using "by" which was 
led before to complicated code.

if anybody of you know of more examples where perl6 greatly simplifies 
perl5 code, please write me here.
its understood that i will try, once finished to translate it for the 
pugs trunk.

herbert
proton-ce.sf.net

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About