<?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 エラーメッセージを表示してプログラムを終了するにはdie関数を使用します。メッセージの末尾にはプログラムが終了した行番号が自動的に追加されます。行番号を表示させないようにするには末尾を改行で終えます。 # エラーメッセージを表示してプログラムを終了 # 行番号あり die $message; # 行番号なし die &quot;$message\n&quot;; 引数が存在しなかった場合に使用方法を表示してプログラムを終了させるサンプルです。$0はスクリプト名です。 # 引数が存在しなかった場合にプログラムを終了 my $file = shift; die &quot;Usage: $0 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fperlcodesample.hatenadiary.jp%2Fentry%2F20100212%2F1264257759&quot; title=&quot;die関数 - エラーメッセージを表示してプログラムを終了 - 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>2010-02-12 23:42:39</published>
  <title>die関数 - エラーメッセージを表示してプログラムを終了</title>
  <type>rich</type>
  <url>https://perlcodesample.hatenadiary.jp/entry/20100212/1264257759</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
