<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>marsonic</author_name>
  <author_url>https://blog.hatena.ne.jp/marsonic/</author_url>
  <blog_title>marsonicの日記</blog_title>
  <blog_url>https://marsonic.hatenadiary.org/</blog_url>
  <categories>
    <anon>Perl</anon>
  </categories>
  <description>・perl eval (Google検索結果) ・Perlリファレンス eval eval() eval(expr)やeval{...}で、ブロックや括弧内をPerlのスクリプトとみなして実行する。最後に実行した命令の結果が戻り値として返される。 エラーやdieだったら、undefineを返し、$@にエラーメッセージを格納する。evalを用いて、Perlのプログラムの異常終了を防ぐことができる。 print eval(&quot;3 * (5 + 3)&quot;).&quot;\n&quot;; $x = 10; $y = 0; $ans = eval{ $x / $y; };#0で割った場合 if($@) { warn &quot;WAR…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmarsonic.hatenadiary.org%2Fentry%2F20090223%2F1235405717&quot; title=&quot;Perl - eval()とは？warn、dieも。 - marsonicの日記&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>2009-02-23 01:15:17</published>
  <title>Perl - eval()とは？warn、dieも。</title>
  <type>rich</type>
  <url>https://marsonic.hatenadiary.org/entry/20090223/1235405717</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
