<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>reiki4040</author_name>
  <author_url>https://blog.hatena.ne.jp/reiki4040/</author_url>
  <blog_title>年中アイス</blog_title>
  <blog_url>https://reiki4040.hatenablog.com/</blog_url>
  <categories>
    <anon>perl</anon>
  </categories>
  <description>perl初めて扱ったときに読んだ行の改行の扱いについて違ったのでメモ。Javaの場合だと、とりあえず、BufferedReaderとか使って1行読んで、その行に対して処理を書く。このとき行末の改行は消え去っているので、特に気にすることなく処理を書く。 // BufferedReaderの宣言、open(),try〜catch,finallyは省略 String line; while ((line = br.readLine()) != null) { // 読み込んだ行に対する処理 } でも、perlでは行末の改行は削除されず、自分で削除する必要がある。そのため、chomp関数を使って改行を…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Freiki4040.hatenablog.com%2Fentry%2F20101213%2F1292252782&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>2010-12-13 00:06:22</published>
  <title> 読み込んだ行の改行削除</title>
  <type>rich</type>
  <url>https://reiki4040.hatenablog.com/entry/20101213/1292252782</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
