<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>moznion</author_name>
  <author_url>https://blog.hatena.ne.jp/moznion/</author_url>
  <blog_title>その手の平は尻もつかめるさ</blog_title>
  <blog_url>https://moznion.hatenadiary.com/</blog_url>
  <categories>
    <anon>Perl</anon>
  </categories>
  <description>文字列中にエスケープされていないダブルクォートがあった時に，例えば文字列evalしようとするとずっこける事があります．以下の様な感じ．なぜ失敗するかというと，eval &quot;$str&quot;がeval &quot;hel&quot;lo&quot;という風に評価されてしまうからなんですね．これではlo&quot;がinvalidになってしまいます． で，そういう時にどうするかと言うとB::perlstrigですよ！こうすると動く． B::perlstring('hel&quot;lo')という風にしてやると，'hel\&quot;lo'という風に適切にダブルクォートをエスケープしてくれる訳ですね． こういう場合「男は黙って正規表現」と思っていましたが，B::pe…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmoznion.hatenadiary.com%2Fentry%2F2014%2F02%2F27%2F143813&quot; title=&quot;B::perlstringを使って文字列中のダブルクォートを適切にエスケープする - その手の平は尻もつかめるさ&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-02-27 14:38:13</published>
  <title>B::perlstringを使って文字列中のダブルクォートを適切にエスケープする</title>
  <type>rich</type>
  <url>https://moznion.hatenadiary.com/entry/2014/02/27/143813</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
