<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>key_amb</author_name>
  <author_url>https://blog.hatena.ne.jp/key_amb/</author_url>
  <blog_title>weblog of key_amb</blog_title>
  <blog_url>https://keyamb.hatenablog.com/</blog_url>
  <categories>
    <anon>Perl</anon>
  </categories>
  <description>if if ブロックを途中で抜けたいときにたまに使うことがありました。 if {{ # do something last if $error; # do something }} {{ にしているのがミソで、if {} の内側の {} がブロックということです。 eval eval は last で抜けられないのですが、同様のことができます。 eval {{ # do something last if $complete; # do something }}; if ($@) { die $@; } (追記) return の方がシンプルなので、return でよさそうです。 eval {…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkeyamb.hatenablog.com%2Fentry%2F2014%2F12%2F13%2F164256&quot; title=&quot;Perl で非ループなブロックで last を使う - weblog of key_amb&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>2014-12-13 16:42:56</published>
  <title>Perl で非ループなブロックで last を使う</title>
  <type>rich</type>
  <url>https://keyamb.hatenablog.com/entry/2014/12/13/164256</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
