Perl ã®è¨èªçµã¿è¾¼ã¿ã®ãªã¹ãæä½ã¯é¢æ°å½¢å¼ã§ãpush(@array, 1, 2) ã®ãããªè¨è¿°ã«ãªãã¾ããä¸ã¤ã®ãªã¹ãã«å¯¾ãã¦è¤æ°ã®æä½ããããå ´åãªã©ã¯ãé¢æ°å¼ã³åºããè¤æ°è¡ã«ããã£ã¦æ¸ãã¦ãããã¨ã«ãªããå°ã
é¢åã§ããããã Perl ã¯ãPerl ã®ãªã¹ãå®è£
ã§ããé
åã®ãªãã¡ã¬ã³ã¹ã« bless ãã¦ã¡ã½ãããå®ç¾©ããã¯ã©ã¹ãä½ããã¨ãã§ãã¾ãããã®ç¬èªã«å®ç¾©ããã¯ã©ã¹ã«ããªããã£ããªæä½ãå ãã¦ãã£ã¦ãRuby ã®ããã«é£ç¶ããã¡ã½ããã®å¼ã³åºãã«ãããªã¹ãæä½ãå®ç¾ãããã¨ãå¯è½ã§ãã ããã§ã¯ List::RubyLike ã¨ããé
åã¯ã©ã¹ãä½æãã¾ããã¾ãã¯æå§ãã«é
åã« bless ãã¦ãsize() ã¡ã½ãããå¼ã³åºããããã«ãã¾ãã以ä¸ã®ããã«ãªãã¾ãã package List::RubyLike; use strict; use warnings; sub
{{#tags}}- {{label}}
{{/tags}}