<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dayflower</author_name>
  <author_url>https://blog.hatena.ne.jp/dayflower/</author_url>
  <blog_title>daily dayflower</blog_title>
  <blog_url>https://dayflower.hatenablog.com/</blog_url>
  <categories>
    <anon>perl</anon>
  </categories>
  <description>変更不可能な変数を作るには Readonly というモジュールが使えます。スピードに関してネガティブなことが書いてあるのですが，気になる向きは Readonly::XS を「追加で」インストールすると自動的にそちらが使われるようになります。 通常は，定数などを表現するのに使ったりしますが， #!/usr/bin/perl use strict; use Readonly; { my $hash = { msg =&gt; 'hello, world' }; sub fetch { Readonly::Scalar my $r =&gt; $hash; $r; } } my $r = fetch(); $r…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdayflower.hatenablog.com%2Fentry%2F20060524%2F1148471141&quot; title=&quot; Readonly は別に定数のためだけじゃなくても使える - daily dayflower&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>2006-05-24 20:45:41</published>
  <title> Readonly は別に定数のためだけじゃなくても使える</title>
  <type>rich</type>
  <url>https://dayflower.hatenablog.com/entry/20060524/1148471141</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
