<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>palmo</author_name>
  <author_url>https://blog.hatena.ne.jp/palmo/</author_url>
  <blog_title>ぱるも日記</blog_title>
  <blog_url>https://palmo.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>PerlでもC言語などのように、配列変数の後ろに[N]と添字を付けると、N番の要素を取り出せます。要素の番号は 0 から始まります。 ただし、注意しなくちゃいけないのは、取り出した要素はスカラー扱いなので、配列の変数名に付けるのは「@」ではなくて「$」になります。 # arrtest3.pl my @fruits = (&quot;Apple&quot;, &quot;Orange&quot;, &quot;Banana&quot;); print $fruits[1]; # @fruits[1]; だとダメ 配列変数 @fruits に代入された3つの文字列には、それぞれ番号が0から割り当てられます。Appleが0番、Orangeが1番、Banana…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpalmo.hatenadiary.org%2Fentry%2F20060428%2Fp5&quot; title=&quot;配列(2) 番号で要素を取得する - ぱるも日記&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-28 00:00:04</published>
  <title>配列(2) 番号で要素を取得する</title>
  <type>rich</type>
  <url>https://palmo.hatenadiary.org/entry/20060428/p5</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
