http://subtech.g.hatena.ne.jp/miyagawa/20080708/1215473551 絶æããï¼rubyã¨æ¯è¼ããã¨ãã®perlã®é£è§£ãã«çµ¶æããï¼ #!/usr/bin/perl use strict; # ããã¯package main; BEGIN { # ããã°ã©ã ã®ã¯ããã«ãµãã«ã¼ãã³ãå®ç¾©ï¼ãªãã¦ãåããããã # ()㯠ãããã¿ã¤ãï¼ å¼æ°ãã¨ããªããã¨ãè¨æãã¦ã # Xã¯ã©ã¹ã®ã³ã³ã¹ãã©ã¯ã¿, å®ä½ã¯$sã®ãªãã¡ã¬ã³ã¹ sub X () { bless \(my $s = "ã²ã ã¾ã"), "X" } # _ == 1 ã«ãã sub _ () { 1 } } package X; # ããããXã¯ã©ã¹ã®å®ç¾© my $i; # ã¯ãã¼ã¸ã£å¤æ°ã ãã©ï¼ã¹ã³ã¼ãã¯ãã¡ã¤ã«ã ã use overload # X ãªãã¸ã§ã¯ãã® / 㨠< æ¼ç®
{{#tags}}- {{label}}
{{/tags}}