<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Naotsugu</author_name>
  <author_url>https://blog.hatena.ne.jp/Naotsugu/</author_url>
  <blog_title>A Memorandum</blog_title>
  <blog_url>https://blog1.mammb.com/</blog_url>
  <categories>
    <anon>Perl</anon>
  </categories>
  <description>指定ファイルの行数をカウントする簡単なプログラム例 #! /usr/bin/perl if (@ARGV == 1) { die &quot;$ARGV[0] not exist \n$!&quot; unless -e $ARGV[0]; open ( STDIN, $ARGV[0] ) || die &quot;Can't open file \n&quot;; } while (&lt;STDIN&gt;) { $line_count++; } print $line_count, &quot;\n&quot;; または、ダイアモンド演算子にて以下のように書くこともできる。 while (&lt;&gt;) { $line_count++; } line_count.p…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog1.mammb.com%2Fentry%2F20091123%2F1258960667&quot; title=&quot;【これだけ覚えりゃなんとか使えるPerlメモ8】行数カウント - A Memorandum&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-11-23 16:17:47</published>
  <title>【これだけ覚えりゃなんとか使えるPerlメモ8】行数カウント</title>
  <type>rich</type>
  <url>https://blog1.mammb.com/entry/20091123/1258960667</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
