<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>perlcodesample</author_name>
  <author_url>https://blog.hatena.ne.jp/perlcodesample/</author_url>
  <blog_title>Perl入門ゼミ</blog_title>
  <blog_url>https://perlcodesample.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>Perl › 関数 › here scalar関数を使用すると、スカラコンテキストを強制することができます。 # スカラコンテキストで評価 scalar 実行文 たとえば配列をスカラコンテキストで評価すると配列の個数が取り出せますが、scalar関数を使って明示的に書くと以下のようになります。 # 配列の個数 my $count = scalar @values; scalar関数は使わなくってよい? プログラムを工夫して書けばscalar関数を使わないでプログラムを書くことができます。たとえば、サブルーチンの引数に値を渡す場合は、変数を経由して渡すようにします。 # 配列の個数を直接渡す f…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fperlcodesample.hatenadiary.jp%2Fentry%2F20180611%2F1528722000&quot; title=&quot;scalar関数 - スカラコンテキストで評価 - 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>2018-06-11 22:00:00</published>
  <title>scalar関数 - スカラコンテキストで評価</title>
  <type>rich</type>
  <url>https://perlcodesample.hatenadiary.jp/entry/20180611/1528722000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
