<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>papix</author_name>
  <author_url>https://blog.hatena.ne.jp/papix/</author_url>
  <blog_title>Masteries</blog_title>
  <blog_url>https://papix.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>妙に詰まってしまったので備忘録的に書き記しておきます. さて, 次のような継承をしているPerlのクラスがあるとします: My::Lib1 &lt;- My::Lib2 &lt;- My::Lib3 My::Lib3はMy::Lib2を, My::Lib2はMy::Lib1を継承している感じです. この時, 例えばMy::Lib3の親(継承元)はどこかを得るにはどうすればよいでしょうか? 解法1: ISAを見る My::Lib3の継承元は, My::Lib3の@ISAに入ります. なので, @ISAを無理やりに見るという手があります. no strict 'refs'; my @isa = *{&quot;My::…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpapix.hatenablog.com%2Fentry%2F2018%2F08%2F18%2F141249&quot; title=&quot;Perlで, あるクラスの親(継承元)を調べる - Masteries&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>2018-08-18 14:12:49</published>
  <title>Perlで, あるクラスの親(継承元)を調べる</title>
  <type>rich</type>
  <url>https://papix.hatenablog.com/entry/2018/08/18/141249</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
