<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sironekotoro</author_name>
  <author_url>https://blog.hatena.ne.jp/sironekotoro/</author_url>
  <blog_title>sironekotoroの日記</blog_title>
  <blog_url>https://sironekotoro.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>連休前の出来事 業務で、1 〜 1500 の数字の中から重複しているものを見つける必要があり、その時に 1 分くらいで書いたのが以下の Perl スクリプトです。 #!/usr/bin/env perl use strict; use warnings; my %hash; for my $line (&lt;DATA&gt;) { chomp $line; $hash{$line}++; } for my $num ( sort keys %hash ) { if ( $hash{$num} &gt; 1 ) { print $num , &quot;\n&quot;; # 3 6 } } __DATA__ 1 2 3 3 4 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsironekotoro.hateblo.jp%2Fentry%2F2021%2F07%2F25%2F012339&quot; title=&quot;Perl で重複した値をみつける - sironekotoroの日記&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>2021-07-25 01:23:39</published>
  <title>Perl で重複した値をみつける</title>
  <type>rich</type>
  <url>https://sironekotoro.hateblo.jp/entry/2021/07/25/012339</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
