sub ã¨è¨ãã° Perlã Perl ã¨è¨ãã° sub ã§ããã Perl 6 ã®é¢æ°å®ç¾©ã«ã¯ sub 以å¤ã«ãè²ã ãããããããã«å½¹å²ãç°ãªã£ã¦ãã¾ãã1ã¤1ã¤è¦ã¦ããã¾ãããã
The Synopsis documents are the design documents used to guide Perl 6 language, compiler, and test development. As design documents, they're frequently subjected to the rigors of cross-examination through implementation and use in practice. In other words, they may change slightly or radically, but the expectation is that they are ``very close`` to the final shape of Perl 6. In the past the Synopse
2011-03-19: è¤æ°è¡ã³ã¡ã³ãã«ã¤ãã¦å çãã¾ããã èæ¯ Perlã«ãããã£ãããããªãã¨æãæ©è½ - ãµã³ãã«ã³ã¼ãã«ããPerlå ¥éãèªãã§ã¦ãããPerl6ã§ã§ããããã¨æã£ãã®ã§ãä¸å¿Perlã§ããä¸å¿ã 1. ããã«ã¯ã©ã¼ãã¼ã·ã§ã³ã®ä¸ã§é¢æ°ãå±éã§ããæ©è½ ããã«ã¯ã©ã¼ã(qqæ¼ç®å)ã¯ã¨ã¹ã±ã¼ãã·ã¼ã±ã³ã¹ãã¹ã«ã©ãé åãããã·ã¥ãé¢æ°ãã¯ãã¼ã¸ã£ãå±éãã¾ã: "aaa { $book.title } bbb" Qã¯ã©ã¼ãæ¼ç®åã§ãªã¬ãªã¬å±éã«ã¼ã«ãä½ãã¾ã(Rakudoã ã¨ã¾ã åãã¾ããã): Q:function/funcall: &func()/; Q:closure/closure: { ucfirst('hello') ~ ', world' }/; # qq//ã¨åã Q:qq/$scalar, @array[], %hash{}, &subroutin
ããã¯Moritz Lenzæ°ã®Webãµã¤ãPerlgeek.deã§å ¬éããã¦ããããã°è¨äº"Perl 5 to 6" Lesson 16 - Enumsã®æ¥æ¬èªè¨³ã§ãã åæã¯Creative Commons Attribution 3.0 Germanyã«åºã¥ãã¦å ¬éããã¦ãã¾ãã æ¬ã¨ã³ããªã«ã¯Creative Commons Attribution 3.0 Unportedãé©ç¨ãã¾ãã Original text: Copyright© 2008-2010 Moritz Lenz Japanese translation: Copyright© 2011 SATOH Koichi NAME "Perl 5 to 6" Lesson 16 - åæå SYNOPSIS enum bit Bool <False True>; my $value = $arbitrary_value
5æ¥ç®ã®ã[/articles/advent-calendar/2010/perl6/5:title=ã¢ã¸ã¥ã¼ã«ãæ¸ãã¦ã¿ãã]ãã¯èªã¿ã¾ãããï¼ã¢ã¸ã¥ã¼ã«æ¸ãã¦ã¿ã¾ãããï¼ããæ¸ããï¼ãã°ãããï¼ ããããã¨æ¬¡ã¯â¦â¦å ¬éãã¦ã¿ãããªãã¾ãããï¼ ã¾ã æ¸ãã¦ããªã人ãâ¦â¦ä½ãæ¸ãããï¼å ¬éãããï¼ã¨æãã¾ãããï¼ ä»æ¥ã¯ãããªäººã®ããã«ã Perl 6 ã¢ã¸ã¥ã¼ã«ãå ¬éã㦠ã«ç»é²ããã¾ã§ã®ã¹ãããã説æãã¾ãã 0. ã¢ã¸ã¥ã¼ã«ãæ¸ãã ä½ã¯ãªãã¨ãã¢ã¸ã¥ã¼ã«ãæ¸ãã¾ããããå®ç¨çãªãã®ãæ¸ããããã Perl 5 ãä»ã®è¨èªã®ã¢ã¸ã¥ã¼ã«ã移æ¤ããã®ãåå¼·ã«ãªãã¾ãããããµããã¢ã¸ã¥ã¼ã«ã ã£ã¦ãã¾ãã¾ããã é©å½ãªãã£ã¬ã¯ããªï¼ä»¥ä¸ $project ã¨ãã¾ãï¼ãä½ã£ã¦ãã¢ã¸ã¥ã¼ã«ã $project/lib 以ä¸ã«ç½®ãã¾ãã ä¾åãã Perl 6 ã®ã¢ã¸ã¥ã¼ã«ããããªãã $proj
http://perl6advent.wordpress.com/2010/12/10/day-10-feed-operators/ Unixã®ãã¤ãã©ã¤ã³ã£ã¦å·¦ããå³ã«æµããï¼ cat hoge.log | grep foo | sed 's/.*foo//' | cut -f2 | sort | uniq -c ã¨ããããperlã®ãã¤ãã¨è¨ãããªã¹ãå¦çã®ãã§ã¼ã³ã¯å³ããå·¦ã«æµããã my @new = sort { ... } map { ... } grep { ... } @original;é¢æ°ã®çµåãã¯å³ããå·¦ãªã®ã§ä»æ¹ãªãããããã·ãã¯ãªããªãã Perl6ã«ã¯ãfeed operatorãã£ã¦ã®ããã£ã¦ãæ¹åãæ示çã«è¡¨ããï¼ my @new <== sort { ... } <== map { ... } <== grep { ... } <== @original;
ãã®è¨äºã¯"Perl6 Advent Calendar"ãã¨ã¹ãã¼å訳ãããã®ã§ãã大æã¯åã£ã¦ããã¨æããããã®ã®ãå 容ã¯ä¿è¨¼ãã¾ããã <åæ> äºæ¥ç® - ã³ãã³ãã©ã¤ã³ã¨MAINé¢æ°ã®äº¤æµ (åæ/Moritz) Day 2 â Interacting with the command line with MAIN subs By Moritz Unixç°å¢ã§ã¯ãå¤ãã®ã¹ã¯ãªãããã³ãã³ãã©ã¤ã³ããå¼æ°ããªãã·ã§ã³ãåãåãã¾ããPerl6ã§ã¯ãã¨ã¦ãç°¡åã«ããããåãåããã¨ãã§ãã¾ãã In Unix environment, many scripts take arguments and options from the command line. With Perl 6 itâs very easy to accept those: $ cat add.pl sub MAI
Shellã®ã·ã³ã°ã«ã¯ã©ã¼ãã¯ã¨ã¹ã±ã¼ãããªãã®ã§ã·ã³ã°ã«ã¯ã©ã¼ãã®ä¸ã§ã·ã³ã°ã«ã¯ã©ã¼ããå©ç¨ãããã¨ãã§ããªãã Enclosing characters in single-quotes ( '' ) shall preserve the literal value of each character within the single-quotes. A single-quote cannot occur within single-quotes. Shell Command Language ä¾ãã°ä»¥ä¸ã¯å é¨ã®ã·ã³ã°ã«ã¯ã©ã¼ãã¯ã¨ã¹ã±ã¼ãããã¦ãããã·ã³ã°ã«ã¯ã©ã¼ããä¸æ¦ã¨ãã¦ã¾ãéããç¶æ ã«ãªã£ã¦ãã $ echo 'That\'s right' >以ä¸ã®ããã«ããã°æå³éãã«åºåã§ãããã ãã©ãããã©ã $ echo 'That'\''s right' That's right
Perl 6 ã§ã¯ã¤ã³ã¹ã¿ã³ã¹ã¡ã½ããã¨ã¯ã©ã¹ã¡ã½ããã¯åºå¥ããã¾ããããªãã¸ã§ã¯ãã®ã¢ããªãã¥ã¼ããã¢ã¯ã»ã¹ãã¦ããªãã¡ã½ããã¯ãã¹ã¦ã¯ã©ã¹ã¡ã½ããã¨ãã¦å¼ã¶ãã¨ãã§ãã¾ãã class C { method hello() { say 'hello'; } has $!aisatsu = 'konnichiwa'; method konnichiwa() { say $!aisatsu; } } C.new.hello; # => hello C.hello; # => hello C.new.konnichiwa; # => konnichiwa # C.konnichiwa # Error: Type objects are abstract and have no attributes, but you tried to access $!aisatsu ã¡ã½ãããã¯ã©ã¹ã«å¯¾ãã¦
Loading⦠Flash Player 9 (or above) is needed to view presentations. We have detected that you do not have it on your computer. To install it, go here. Perl6regex - Presentation Transcript !"#"$ â â !"#"$ !"#"$ %& '( ) *+," -./01 2!345 63$ 7.%8"9 3:"! +," +," ;<=& 93#*> !" #$ %% &' ( )*+, -+ #. / ' 0 $12 345678 9#.9 :*!;< !7 1 =5*3> ? !" 9@=5@<=A29 %% &' @<=A ' 0 $12 39@=5@<=A29 ;57:1!7$ 9@<=A93> ?
â _ LL Tiger è¡ã£ã¦ãã¾ãããéå ±ã¯ãã®ãã¨! (ã¿ãããããã¯ã¹ã«ã¼ã ã£ãã®ããª) unixã³ãã³ã0 true C 0ä»¥å¤ true â _ LL Tiger » ã¿ã¤ã ã¹ã±ã¸ã¥ã¼ã« ã¿ã¤ã ã¹ã±ã¸ã¥ã¼ã« 10:00 éå ´ 10:25-10:30 éä¼å®£è¨ 10:30-11:50 Language Update 11:50-12:00 ä¼æ© 12:00-13:00 éçºã©ã¤ã»ã³ã¹ã¨ããã°ã©ãã¼ã®èªç± 13:00-14:30 æ¼ä¼ã¿ 14:30-15:30 LTã®èã»1åæ¦ 15:30-16:30 LLã¨é»ååºç 16:30-17:00 å¤ä¼ã¿ 17:00-18:00 LLã§ãã£ã¸ã«ã«ã³ã³ãã¥ã¼ãã£ã³ã° 18:00-18:30 LTã®èã»æºæ±ºå 18:30-18:40 ä¼æ© 18:40-19:40 é«éåèã®å·» 19:40-20:00 LTã®èã»æ±ºå 20:00-20:10 æ½é¸ä¼
Perl 6 Advent Calendar 2009ãã¼ã¡ã¼ã¡å訳ãã¦ããã¾ããæè¨³è¶ è¨³ãå¤åã«å«ã¿ã¾ããçåç¹ã誤訳ãããã°ãæ°è»½ã«ã³ã¡ã³ããã ããã 1æ¥ç®ï¼Rakudo ã®å ¥æ 2æ¥ç®ï¼ãã©ã¼ãããã£ã³ã°ã®ç¾ 3æ¥ç®ï¼éçåä»ã㨠multi sub 4æ¥ç®ï¼ããã°ã©ã ã®ãã¹ã 5æ¥ç®ï¼ã¡ã¿æ¼ç®å 6æ¥ç®ï¼ãã¤ãã¼æ¼ç®å 7æ¥ç®ï¼è¶£å³ã¨å®çã®ã«ã¼ãæ§æ 8æ¥ç®ï¼.comb ã¨å¶ç´ 9æ¥ç®ï¼å¼æ°ã¨å¼æ°æ¸¡ã 10æ¥ç®ï¼æ£è¦è¡¨ç¾ã®è©± 11æ¥ç®ï¼ã¯ã©ã¹ãå±æ§ãã¡ã½ããããã®ä»ãããã 12æ¥ç®ï¼ã¢ã¸ã¥ã¼ã«ã¨ã¨ã¯ã¹ãã¼ã 13æ¥ç®ï¼ã¸ã£ã³ã¯ã·ã§ã³ 14æ¥ç®ï¼æçæ°å
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}