<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hshiori</author_name>
  <author_url>https://blog.hatena.ne.jp/hshiori/</author_url>
  <blog_title>猿から人へ</blog_title>
  <blog_url>https://shiori.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>乱数を生成し、それをユーザーに当ててもらうプログラムです。exit、quit、空白の入力があった際と、数字が当たった際にプログラムを終了させています。 #!/usr/bin/perl use strict; use warnings; use 5.010; #ランダムな数値を生成。 my $random = int(1 + rand 100); while(&lt;&gt;){ if($_ =~ /^\s/ ){ last; }elsif($_ =~ m/exit|quit| /){ last; }elsif($_ == $random){ print &quot;MATCH\n&quot;; last; }elsif($_…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshiori.hatenablog.jp%2Fentry%2F2014%2F01%2F16%2F105621&quot; title=&quot;初めてのPerl 第10章 様々な制御構造 練習問題1 - 猿から人へ&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-01-16 10:56:21</published>
  <title>初めてのPerl 第10章 様々な制御構造 練習問題1</title>
  <type>rich</type>
  <url>https://shiori.hatenablog.jp/entry/2014/01/16/105621</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
