<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>anatofuz</author_name>
  <author_url>https://blog.hatena.ne.jp/anatofuz/</author_url>
  <blog_title>Acme::AnaTofuZ-&gt;new;</blog_title>
  <blog_url>https://anatofuz.hatenablog.com/</blog_url>
  <categories>
    <anon>Perl</anon>
    <anon>Ruby</anon>
  </categories>
  <description>始まり Rubyを勉強し始めていて、Rubyで Array.new(5,'default') などとすると、要素数5の配列が生成されるが、これら1つ1つの要素は同じオブジェクトIDを所持している為 a[0].upcase! などとすると全ての要素が変更される事を知った。 普段書いているのはPerlなので、Perlではどのようにするとこれが再現できるかを考えてみた。 Perlで一気に同一オブジェクトのリファレンスを持つ配列とか作れるのかな— 八雲アナグラ (@AnaTofuZ) 2018年2月22日 試みる id:mackee_w さんに拾っていただき試みが始まる。 map { $obj } 1…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanatofuz.hatenablog.com%2Fentry%2F2018%2F02%2F22%2F214244&quot; title=&quot;RubyのArray.new(5,&amp;#39;default&amp;#39;)っぽいことをPerlでする試み - Acme::AnaTofuZ-&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>2018-02-22 21:42:44</published>
  <title>RubyのArray.new(5,'default')っぽいことをPerlでする試み</title>
  <type>rich</type>
  <url>https://anatofuz.hatenablog.com/entry/2018/02/22/214244</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
