<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ablabo</author_name>
  <author_url>https://blog.hatena.ne.jp/ablabo/</author_url>
  <blog_title>ABラボラトリ</blog_title>
  <blog_url>https://ablabo.hatenadiary.org/</blog_url>
  <categories>
    <anon>初めてのPerl</anon>
  </categories>
  <description>foreach制御構造における制御変数は、リストの要素のコピーではなく、リストの要素そのものなんだそう。見落とし発見。 foreach命令内の制御変数にループ中の命令が作用するように理解していたけれど、実際はリストの要素そのものに作用するんだな。よくよく考えてみれば当たり前だ。 下記のコードを実行させると良く理解できた。 my @array = qw { 1 2 3 }; my $num; foreach $num (@array) { $num ++; } print &quot;@array\n&quot;; print &quot;$num\n&quot;;実行結果は以下となります。 2 3 4 Use of uninitia…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fablabo.hatenadiary.org%2Fentry%2F20060421%2F1145630785&quot; title=&quot; 復習 3.6 foreach制御構造 - ABラボラトリ&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-04-21 23:46:25</published>
  <title> 復習 3.6 foreach制御構造</title>
  <type>rich</type>
  <url>https://ablabo.hatenadiary.org/entry/20060421/1145630785</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
