<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ymko</author_name>
  <author_url>https://blog.hatena.ne.jp/ymko/</author_url>
  <blog_title>ymkoの日記</blog_title>
  <blog_url>https://ymko.hatenadiary.org/</blog_url>
  <categories>
    <anon>Perl</anon>
  </categories>
  <description>前回のサブルーチンだとパターンを複数指定できるのだが、パターンが重複する場合（例： abc =&gt; &quot;ab&quot;, ab =&gt; &quot;abcd&quot;など）後から指定したもので書き換えられてしまうことが考えられる。しかもこれはハッシュから取得しているためどの順番で書き換えられるがわからない。バグの元にも成りかねないのでひとつだけ指定する、と変更した。そもそも正規表現パターンを動的に使用しているので扱いには注意が必要。 sub okikae { my ($infile, $outfile, $hash) = @_; # パターン指定はひとつだけ goto ERROR if scalar keys %$hash;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fymko.hatenadiary.org%2Fentry%2F20100716%2F1279290540&quot; title=&quot;正規表現を使用して、ファイルの任意の行を指定した文字列に置き換えるサブルーチン(修正) - ymkoの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-07-16 23:29:00</published>
  <title>正規表現を使用して、ファイルの任意の行を指定した文字列に置き換えるサブルーチン(修正)</title>
  <type>rich</type>
  <url>https://ymko.hatenadiary.org/entry/20100716/1279290540</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
