<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>note103</author_name>
  <author_url>https://blog.hatena.ne.jp/note103/</author_url>
  <blog_title>the code to rock</blog_title>
  <blog_url>https://note103.hateblo.jp/</blog_url>
  <categories>
    <anon>perl</anon>
    <anon>Perl入学式</anon>
  </categories>
  <description>Perl入学式最新復習問題の2問目。 設問は以下。 calc.plで作成した関数における引数が数字であるかどうか正規表現を使って判定するように改良してください. 数値以外が引数であった場合は undef を返すようにしてください. 回答はこんな。 #!/usr/bin/env perl use strict; use warnings; use Data::Dumper; sub calc { my ($num1, $num2) = @_; if ($num1 =~ /\D/ || $num2 =~ /\D/) { return &quot;undef\n&quot;; } else { my $add = $n…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnote103.hateblo.jp%2Fentry%2F2013%2F11%2F28%2F002327&quot; title=&quot;Perl入学式復習問題2013-4-2 - the code to rock&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>2013-11-28 00:23:27</published>
  <title>Perl入学式復習問題2013-4-2</title>
  <type>rich</type>
  <url>https://note103.hateblo.jp/entry/2013/11/28/002327</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
