<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>uzulla</author_name>
  <author_url>https://blog.hatena.ne.jp/uzulla/</author_url>
  <blog_title>uzullaがブログ</blog_title>
  <blog_url>https://uzulla.hateblo.jp/</blog_url>
  <categories>
    <anon>php</anon>
  </categories>
  <description>人と話していて、「PerlにはGuardがある、Guardは最高だ、無い言語は不便！」と、もう片手では聞かない回数は聞いたような気がするので、PHPで実装出来ないかという話です。 Guardとは https://metacpan.org/pod/Guardあるブロックスコープから復帰（returnなど）する際に行う処理を、そのブロックスコープ内で動的に設定することができる。 多くの場合、テンポラリな設定を戻す為や、開いているファイルを閉じる為とか、色々後処理するコードを先頭にかいておけば、どこでそのブロックが復帰（終了）しても、忘れずに片付けができる、とかそういうやつである。Perlではしばし…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fuzulla.hateblo.jp%2Fentry%2F2014%2F04%2F02%2F010634&quot; title=&quot;PHPでもPerlでいうところのGuardをするやで！！ - uzullaがブログ&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>http://ecx.images-amazon.com/images/I/51VavR1gcyL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-04-02 01:06:34</published>
  <title>PHPでもPerlでいうところのGuardをするやで！！</title>
  <type>rich</type>
  <url>https://uzulla.hateblo.jp/entry/2014/04/02/010634</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
