<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ktat</author_name>
  <author_url>https://blog.hatena.ne.jp/ktat/</author_url>
  <blog_title>Practice of Programming</blog_title>
  <blog_url>https://ktat.hatenadiary.jp/</blog_url>
  <categories>
    <anon>perl</anon>
  </categories>
  <description>何年も使ってるのに、基本的な関数知らないとか!とか、思った。同僚がはまっていたので知ったのですが、sort のスカラコンテキストでの振る舞いは未定義だそうです。実際問題、sort をスカラで受けるとか意味わからない。ちゃんと警告も出ます。 Useless use of sort in scalar context at -e line 1.そもそも、リストをスカラで受けるのは、かなり嫌な感じになるため、経験的に避けます。 my $item = qw/a b c/; $item に入るのは、リストの最後の要素、'c' なのですが、意図してこんなコードは書きませんよね。 ちなみに、 my ($it…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fktat.hatenadiary.jp%2Fentry%2F20130615%2F1371295513&quot; title=&quot; scalarコンテキストでのsortの振る舞いは未定義 - Practice of Programming&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-06-15 20:25:13</published>
  <title> scalarコンテキストでのsortの振る舞いは未定義</title>
  <type>rich</type>
  <url>https://ktat.hatenadiary.jp/entry/20130615/1371295513</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
