<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryuichi1208</author_name>
  <author_url>https://blog.hatena.ne.jp/ryuichi1208/</author_url>
  <blog_title>地方エンジニアの学習日記</blog_title>
  <blog_url>https://ryuichi1208.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>イディオム的に書いておく。 #!/usr/bin/perl use strict; use warnings; local $@; eval { local $SIG{ALRM} = sub { die &quot;timeout!!\n&quot;; }; alarm 2; sleep 3; # 時間のかかる処理 alarm 0; }; if ( $@ ) { print &quot;exception: $@&quot;; } alarm ${数字}を実行することでalarm(2)が呼び出される。manより抜粋 alarm() は SIGALRM シグナルを seconds 秒後に呼び出したプロセスに配送するように手配する。 s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryuichi1208.hateblo.jp%2Fentry%2F2021%2F10%2F04%2F000706&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>2021-10-04 00:07:06</published>
  <title>【Perl】アラームでタイムアウト</title>
  <type>rich</type>
  <url>https://ryuichi1208.hateblo.jp/entry/2021/10/04/000706</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
