2007å¹´10æ30æ¥20:00 ã«ãã´ãªLightweight Languages perl - åæã«æ·»å - 40è¡ã§ä½ãPerlç¨ãã³ãã¬ã¼ãã¨ã³ã¸ã³ ä¹ ã ã®åæã«æ·»åãä»åã¯ãã¡ãã 40è¡ã§ä½ãPerlç¨ãã³ãã¬ã¼ãã¨ã³ã¸ã³ æ£è¦è¡¨ç¾ããã¿ãªã®ã§ãPerl以å¤ã§ãæç¨ã æ·»åç®æã¯ããã¡ãã 40è¡ã§ä½ãPerlç¨ãã³ãã¬ã¼ãã¨ã³ã¸ã³ sub convert { return unless defined(my $str = shift); $str =~ s{&}{&}gso; $str =~ s{<}{<}gso; $str =~ s{>}{>}gso; $str =~ s{\"}{"}gso; $str; } ããã®æåã®substitutionã&ã§ã¯ãªãã¦&ã§ã¯ãªããã¨ããã®ã¯ãã¦ããããããã£ãå ´åãä½åº¦ãæ£è¦è¡¨ç¾ããã
{{#tags}}- {{label}}
{{/tags}}