<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hakobe932</author_name>
  <author_url>https://blog.hatena.ne.jp/hakobe932/</author_url>
  <blog_title>はこべにっき ♨</blog_title>
  <blog_url>https://hakobe932.hatenablog.com/</blog_url>
  <categories>
    <anon>初めてのPerl</anon>
  </categories>
  <description>サブルーチンの章をいっぺんに読んだ。まず、ためしにサブルーチンを書いてみる。 sub adder { my ($x, $y) = @_; $x + $y } print &amp;adder(1, 2) . &quot;\n&quot;;軽ーくまとめておこう。 subでサブルーチンを定義する サブルーチン名に&amp;を付けると呼び出せる 引数は()で渡せ！ サブルーチン内では引数のリストは@_というローカルな変数に入れられる 最後に評価された式の値が戻り値 サブルーチン内でプライベートな変数を使いたい時はmyを使う 最後に評価された値ってのはRubyっぽいね。むしろ、Rubyの機能の原典はPerlなんだろうけど。さてさて、うち…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhakobe932.hatenablog.com%2Fentry%2F20060424%2F1145885537&quot; title=&quot;第4章 サブルーチン Perlは変数のスコープがアレだなぁ - はこべにっき ♨&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>http://ecx.images-amazon.com/images/I/51C59GNSC3L.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2006-04-24 22:32:17</published>
  <title>第4章 サブルーチン Perlは変数のスコープがアレだなぁ</title>
  <type>rich</type>
  <url>https://hakobe932.hatenablog.com/entry/20060424/1145885537</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
