2007å¹´05æ25æ¥15:30 ã«ãã´ãªLightweight Languages perl - 左辺å¤ä»£å ¥ ããã£ã¦Perlã§ã éããè°·ãã æ¡ä»¶å¼ã®çµæã左辺ã«æ¸ããè¨èªã£ã¦ãC/C++以å¤ã«ããã®ã ãããã Perl Best Practices Damian Conway [é¦è¨³:Perlãã¹ããã©ã¯ãã£ã¹] my $a = 1; my $b = 2; print "a = $a, b = $b\n"; ($a < $b ? $a : $b) = 0; print "a = $a, b = $b\n"; a = 1, b = 2 a = 0, b = 2 ãããã«ä¸è¨ã®ä¾ã¯ãã¾ã使ãã¾ãããã my $str = "foobar"; substr($str, 3, 3) = 'dan'; # foodan ã¨ãã¯æ¯è¼çããè¦ããã¾ãã ã¡ãªã¿ã«ãDCONWAYã¯å·¦è¾ºå¤ä»£å ¥(lv
{{#tags}}- {{label}}
{{/tags}}