<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>reiki4040</author_name>
  <author_url>https://blog.hatena.ne.jp/reiki4040/</author_url>
  <blog_title>年中アイス</blog_title>
  <blog_url>https://reiki4040.hatenablog.com/</blog_url>
  <categories>
    <anon>perl</anon>
  </categories>
  <description>perlメインで使ってるわけじゃないんですが、サーバ側の調査等でperlのワンライナーは便利なのでよく使います。 普段使ってない言語だと、配列の長さを取るだけで迷ってしまいます。 Javaなら、array.lengthや、List.size()、Pythonならlen()と、それぞれです。調べてたら2個あって、1個は、長さじゃなくて最後のインデックスなのに気づかず、値は出るのに、なぜか1少ない・・・？とハマってました。 @array = (&quot;abc&quot;, &quot;def&quot;, &quot;ghi&quot;); # これは2 $#array # これは3 scalar(@array) コマンドマンドで確認 perl -e …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Freiki4040.hatenablog.com%2Fentry%2F20130116%2F1358346012&quot; title=&quot;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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-01-16 23:20:12</published>
  <title>Perlで配列の長さを取得する</title>
  <type>rich</type>
  <url>https://reiki4040.hatenablog.com/entry/20130116/1358346012</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
