<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chaichanPaPa</author_name>
  <author_url>https://blog.hatena.ne.jp/chaichanPaPa/</author_url>
  <blog_title>旧燈明日記</blog_title>
  <blog_url>https://chaipa.hateblo.jp/</blog_url>
  <categories>
    <anon>Perlノート</anon>
  </categories>
  <description>通常、Windows上で改行処理をする時の改行（\n）のコードは、CR LF（0x0d0a）です。 しかし、Linux用にファイル出力をする時は、LF（0x0a）にしたいのです。 エスケープ文字にも\rや\nは有りますが、LFになるもは無いのです。 この場合は、オープン後にbinmodeします。 すると、ファイル出力時には改行コードがCR LFでなくLFのみになるのです。 use strict; use warnings; open(FH, '&gt; linuxfile.txt') or die &quot;open error($!)&quot;; binmode(FH); print FH &quot;TEST1\n&quot;; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaipa.hateblo.jp%2Fentry%2F20090331%2F1238508961&quot; title=&quot; Windows上のPerlで改行コードをLF（0x0a）にするには - 旧燈明日記&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>2009-03-31 23:16:01</published>
  <title> Windows上のPerlで改行コードをLF（0x0a）にするには</title>
  <type>rich</type>
  <url>https://chaipa.hateblo.jp/entry/20090331/1238508961</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
