{"version":"1.0","published":"2010-11-19 00:00:00","image_url":null,"blog_url":"https://r9.hateblo.jp/","height":"190","author_name":"rightgo09","author_url":"https://blog.hatena.ne.jp/rightgo09/","provider_name":"Hatena Blog","categories":["Perl","Ruby"],"provider_url":"https://hatena.blog","type":"rich","blog_title":"Perl\u65e5\u8a18","url":"https://r9.hateblo.jp/entry/20101119/p1","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eRuby\u3092\u8aad\u307f\u3064\u3064\u3001\u521d\u3081\u3066\u306eRuby\u3082\u8aad\u307f\u8fd4\u3057\u305f\u308a\u3057\u3066\u3001Ruby\u9762\u767d\uff01\u72b6\u614b\u3060\u3051\u3069\u3001\u305f\u307e\u306bPerl\u3092\u304b\u307e\u3063\u3066\u3042\u3052\u305f\u304f\u306a\u308b\u4e0d\u601d\u8b70\u3002 \u4eca\u65e5\u3082\u304a\u3084\uff1f\u3001\u3068\u601d\u3046\u3068\u3053\u308d\u3042\u3063\u305f\u306e\u3067\u3001\u30e1\u30e2\u3002 \u914d\u5217\u306e\u6dfb\u3048\u5b57\u4ee3\u5165 \u8981\u7d20\u6570 \u5de6\u8fba \uff1c \u53f3\u8fba Ruby\u306e\u5834\u5408\u30021.9.2\u3002 ary = [ 'a', 'b', 'c', 'd', 'e', 'f' ] ary[0..2] = [ 'g', 'h', 'i', 'j', 'k' ] p ary #=> [\"g\", \"h\", \"i\", \"j\", \"k\", \"d\", \"e\", \"f\"] \u5de6\u8fba\u306e\u6dfb\u3048\u5b57\u304c[0]\u301c[2]\u307e\u3067\u306e\u300c3\u3064\u306e\u8981\u7d20\u300d\u306b\u3001\u300c5\u3064\u306e\u8981\u7d20\u300d\u3092\u3082\u3064\u914d\u5217\u2026","title":"\u914d\u5217\u306e\u6dfb\u5b57\u4ee3\u5165","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fr9.hateblo.jp%2Fentry%2F20101119%2Fp1\" title=\"\u914d\u5217\u306e\u6dfb\u5b57\u4ee3\u5165 - Perl\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}