<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sardine</author_name>
  <author_url>https://blog.hatena.ne.jp/sardine/</author_url>
  <blog_title>toyfish.blog</blog_title>
  <blog_url>https://www.toyfish.blog/</blog_url>
  <categories>
    <anon>prog</anon>
  </categories>
  <description>Perl は幼児レベルしかわからないので、今日も人に質問されてわからなかった。 「サブルーチンに文字列を渡した後、サブルーチン内で substr を使って部分文字列を取得しようとしています。この場合、文字列をそのままサブルーチンに渡すのではなくリファレンスを渡した方が、値のコピーを防げるために性能面で有利だと聞いたのですが、本当ですか。substr に渡すためにデリファレンスする時点でどうせ値がコピーされてしまうのでしょうから、たいして変わらないのではないですか」 以下、帰宅してから Mac の 5.12.4 で試したメモ。作業記録であって結論はない。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.toyfish.blog%2Fentry%2F20130220%2Fp1&quot; title=&quot; Perl: リファレンスを使って長い文字列のコピーを回避できるか? - toyfish.blog&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>2013-02-20 00:00:00</published>
  <title> Perl: リファレンスを使って長い文字列のコピーを回避できるか?</title>
  <type>rich</type>
  <url>https://www.toyfish.blog/entry/20130220/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
