<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>perlcodesample</author_name>
  <author_url>https://blog.hatena.ne.jp/perlcodesample/</author_url>
  <blog_title>Perl入門ゼミ</blog_title>
  <blog_url>https://perlcodesample.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>Perl › 関数 › here getc関数を使って1文字づつ読み込むこともできます。 my $c = getc $fh; サンプル 以下は、1文字読み込みのサンプルです。 use strict; use warnings; # 1文字読み込み # 読み込みたいファイル名 my $file = shift; print &quot;1: 1文字ずつ読み込む。\n&quot;; open(my $fh, &quot;&lt;&quot;, $file) or die &quot;Cannot open $file: $!&quot;; # 1文字ずつ読み込むにはgetc関数を使います。 while (defined (my $c = getc $fh)) {…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fperlcodesample.hatenadiary.jp%2Fentry%2F20080725%2F1217001133&quot; title=&quot;getc関数 - ファイルから一文字ずつ読み込む  - Perl入門ゼミ&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>2008-07-25 00:52:13</published>
  <title>getc関数 - ファイルから一文字ずつ読み込む </title>
  <type>rich</type>
  <url>https://perlcodesample.hatenadiary.jp/entry/20080725/1217001133</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
