<?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>通常、open関数の第一引数は、ファイルのディスクリプタハンドルです。 普通、ディスクリプタハンドルは、大文字のベアワードを指定します。 しかし、ディスクリプタハンドルにスカラー変数を指定しているケースに遭遇しました。 そこで、このケースをテストしてみました。 テスト結果 このときのスカラー変数は、型グロブのリファレンスになっていました。 したがって、まず該当ディスクリプタハンドルがどこかにあって、それの型グロブリファレンスが、デディスクリプタハンドルとして使用できるみたいです。 use strict; my $fd; open $fd, &quot;test.txt&quot;; print &lt;$fd&gt;; # …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaipa.hateblo.jp%2Fentry%2F20080127%2F1201387345&quot; title=&quot; open関数の第一引数であるディスクリプタハンドルにスカラー変数を指定できるか？ - 旧燈明日記&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-01-27 07:42:25</published>
  <title> open関数の第一引数であるディスクリプタハンドルにスカラー変数を指定できるか？</title>
  <type>rich</type>
  <url>https://chaipa.hateblo.jp/entry/20080127/1201387345</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
