<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>woniu</author_name>
  <author_url>https://blog.hatena.ne.jp/woniu/</author_url>
  <blog_title>蝸牛</blog_title>
  <blog_url>https://woniu.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>リファレンスの使い方はだいたいわかったが、疑問がわいた。 「サブルーチンに文字列をそのまま渡さずにリファレンスで渡すべきか」 ということである。直感的に、リファレンスで渡した方がよい事はあっても悪いことはない、と思う。 直接渡すと、サブルーチンでその文字列のコピーを持つから、文字列をコピーする時間がかかり、 文字列用のメモリ領域も余計に取る、のではないだろうか？実際に試してみても速度の変化は確認できなかったが、「続初めてのPerl」に以下のような記述があるので、 私の考えは間違っていないと思う。 Perlは、@_を作るために、配列のすべての中身をコピーしなければなりません。要素が少なければ問題…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwoniu.hatenadiary.org%2Fentry%2F20130309%2F1362841922&quot; title=&quot;リファレンスの用途 - 蝸牛&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-03-09 00:12:02</published>
  <title>リファレンスの用途</title>
  <type>rich</type>
  <url>https://woniu.hatenadiary.org/entry/20130309/1362841922</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
