Perl ã« substr ã¨ããé¢æ°ãããã¾ããæååãé¨åçã«åãåºããããé¨åçã«ç½®æã§ããé¢æ°ã§ãã å ¸åçãªä½¿ãæ¹ã¯ãããªæãã my $s = 'The black cat climbed the green tree'; # 4æåèªã¿é£ã°ãã¦ãã5æååãåºã my $color = substr $s, 4, 5; print $color; # => 'black' # 14æåèªã¿é£ã°ãã¦ãã7æååãå¥ã®æååã§ç½®æãã substr $s, 14, 7, 'jumped from'; print $s; # => 'The black cat jumped from the green tree' ãã¦ãPerl çéã§æåãªæ¸ç±ãåãã¦ã® Perlããèªãã§ãããããã® substr é¢æ°ã«ã¤ãã¦æ¬¡ã®ããã«æ¸ããã¦ãã¾ããã ããã§æ¬å½ã«ç´ æ´ãããæ©è½ãæ«é²ãã¾
{{#tags}}- {{label}}
{{/tags}}