{"categories":["Program","Perl"],"type":"rich","title":" \u6b63\u898f\u8868\u73fe\u306e\u6587\u5b57\u30af\u30e9\u30b9","published":"2007-11-07 22:39:53","description":"Perl \u306f\u6b63\u898f\u8868\u73fe\u3068\u304b \" \u3067\u306f\u3055\u307e\u308c\u305f\u6587\u5b57\u5217\u306e\u4e2d\u306b\u3042\u308b\u5909\u6570\u3068\u304b\u914d\u5217\u3092\u5c55\u958b\u3057\u3066\u304f\u308c\u308b\u3093\u3067\u3059\u304c\u3001\u3053\u308c\u306f\u660e\u3089\u304b\u306b\u6b63\u898f\u8868\u73fe\u306e\u6587\u5b57\u30af\u30e9\u30b9 ([abc] \u3068\u304b\u66f8\u304f\u30e4\u30c4) \u3068\u30d6\u30c4\u304b\u308b\u308f\u3051\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306f @a \u306b 0-999 \u307e\u3067 \"x\" \u3063\u3066\u3044\u3046\u5909\u6570\u3092\u3064\u3063\u3053\u3093\u3067\u304b\u3089 s/$a[...]/y/; \u7684\u306a\u3053\u3068\u3092\u5b9f\u884c\u3057\u3066\u3001 $_ \u306b\u5165\u3063\u3066\u308b x \u3092 y \u306b\u5909\u3048\u3088\u3046\u3068\u3059\u308b\u30b3\u30fc\u30c9\u3092\u3044\u304f\u3064\u304b\u3002 #!/usr/bin/env perl for ($i=0; $i < 999; $i++) { $a[$i] = \"x\"; } $_ = \"x\"; s/$a[12]/y/; print \"12: $_\\n\"; $_ =\u2026","author_url":"https://blog.hatena.ne.jp/shinichiro_h/","blog_url":"https://shinh.hatenablog.com/","image_url":null,"version":"1.0","provider_url":"https://hatena.blog","author_name":"shinichiro_h","width":"100%","blog_title":"\u517c\u96d1\u8a18","provider_name":"Hatena Blog","height":"190","url":"https://shinh.hatenablog.com/entry/20071107/1194442793","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinh.hatenablog.com%2Fentry%2F20071107%2F1194442793\" title=\" \u6b63\u898f\u8868\u73fe\u306e\u6587\u5b57\u30af\u30e9\u30b9 - \u517c\u96d1\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}