<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chaichanPaPa</author_name>
  <author_url>https://blog.hatena.ne.jp/chaichanPaPa/</author_url>
  <blog_title>旧燈明日記</blog_title>
  <blog_url>https://chaipa.hateblo.jp/</blog_url>
  <categories>
    <anon>Perlノート</anon>
  </categories>
  <description>結論から言うと、Perlでは、for文とforeach文は同じ物なのです。 というか、for文のforは、foreachの省略形とのことです（ホントかな）。 と同じとはいいながら、for文とforeach文ではイメージが違います。 for文は、インデックスで回すイメージ foreach文は、データ構造の各要素に対して各々回すイメージ ◆for文の基本 for (my $i = 1; $i &lt; 10; $i++) { 処理 } ◆foreach文の基本 foreach my $scalar (@array) { 処理 } ◆for文とforeach文の可換 冒頭で述べたように、for文とfore…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaipa.hateblo.jp%2Fentry%2F20090630%2F1246362894&quot; title=&quot; Perlの謎（その６）：foreach文がfor文に  - 旧燈明日記&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>2009-06-30 20:54:54</published>
  <title> Perlの謎（その６）：foreach文がfor文に </title>
  <type>rich</type>
  <url>https://chaipa.hateblo.jp/entry/20090630/1246362894</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
