<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yohei-a</author_name>
  <author_url>https://blog.hatena.ne.jp/yohei-a/</author_url>
  <blog_title>ablog</blog_title>
  <blog_url>https://yohei-a.hatenablog.jp/</blog_url>
  <categories>
    <anon>Perl</anon>
  </categories>
  <description>こんな感じでできたのでメモ。 ソースコード filehandle.pl #!/usr/bin/env perl use strict; use warnings; my @array = (1,2,3,4,5,6,7,8,9,10); foreach my $item (@array) { no strict &quot;refs&quot;; my $fh = &quot;OUT${item}&quot;; open (${$fh}, &quot;&gt;&quot;, &quot;${item}.txt&quot;); print({${$fh}} &quot;$item\n&quot;); close(${$fh}); } __END__ 実行結果 $./filehandle.pl $ ls…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohei-a.hatenablog.jp%2Fentry%2F20120131%2F1327981417&quot; title=&quot;Perl で変数を使ってファイルハンドル名を動的に生成する - ablog&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>2012-01-31 12:43:37</published>
  <title>Perl で変数を使ってファイルハンドル名を動的に生成する</title>
  <type>rich</type>
  <url>https://yohei-a.hatenablog.jp/entry/20120131/1327981417</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
