<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>DocSeri</author_name>
  <author_url>https://blog.hatena.ne.jp/DocSeri/</author_url>
  <blog_title>妄想科學倶樂部</blog_title>
  <blog_url>https://docseri.hatenablog.jp/</blog_url>
  <categories>
    <anon>Perl</anon>
  </categories>
  <description>結構書いているので新規にperlカテゴリ追加。 自分で作る blog ツールに倣って空行でヘッダと本文を切り分けてみる。配列に読み込んだテキストファイルをforeachで1行づつ処理、改行文字を削除した内容が空だったらlastで処理終了。そうでなければ$descriptionに内容を追加してshiftで処理済み行を削除。 予測では空行の前までを$descriptionに取り込み、配列から削除。残りを本文として処理する……予定だったが、実際にはヘッダが2行の場合最初の行のみを取り込み、3行では本文まですべてを取り込んでしまった。なんでだ。 ああそうか、配列についてのループ中に配列自身をshift…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdocseri.hatenablog.jp%2Fentry%2F20050506%2F1115346851&quot; title=&quot;空行での切り分け - 妄想科學倶樂部&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>2005-05-06 11:34:11</published>
  <title>空行での切り分け</title>
  <type>rich</type>
  <url>https://docseri.hatenablog.jp/entry/20050506/1115346851</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
