<?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>Win32::OLEモジュールのnewメソッドの第二引数は、デストラクタを指定します。 ちなみに、デストラクタとは、オブジェクトが破棄される直前に実行される処理です。 これはCODEリファレンスまたはOLEメソッド名の入った文字列のどちらかにすることができます。 http://perldoc.jp/docs/modules/libwin32-0.26/Win32/OLE.pod とのことで、以下はどちらでもＯＫです。 # 第二引数にCODEリファレンスを渡す。 $excel = Win32::OLE-&gt;new('Excel.Application', sub {$_[0]-&gt;Quit;}); …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaipa.hateblo.jp%2Fentry%2F20071219%2F1198065952&quot; title=&quot; Win32::OLE-&amp;gt;newメソッドのデストラクタについて - 旧燈明日記&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>2007-12-19 21:05:52</published>
  <title> Win32::OLE-&gt;newメソッドのデストラクタについて</title>
  <type>rich</type>
  <url>https://chaipa.hateblo.jp/entry/20071219/1198065952</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
