<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>perlcodesample</author_name>
  <author_url>https://blog.hatena.ne.jp/perlcodesample/</author_url>
  <blog_title>Perl入門ゼミ</blog_title>
  <blog_url>https://perlcodesample.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>Perl › 構文 › here if修飾子を使うとifを後置することができます。 文 if 条件; if修飾子を使ったサンプルです。正規表現を使って、先頭が「#」ならば次の行に移動という処理を行っています。 for my $line (@lines) { next if $line =~ /^#/; } 一行で書ける簡単な条件のときはif修飾子を使うメリットがあります。nextやlastと組み合わせて 「next if 条件」「last if 条件」などがよく利用されます。 if修飾子のメリット 通常のif文と比べてif修飾子のメリットはパフォーマンスです。if文はスコープを作るのに対して、…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fperlcodesample.hatenadiary.jp%2Fentry%2F20080324%2F1206371082&quot; title=&quot;if修飾子 - 後置のif - Perl入門ゼミ&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>2008-03-24 00:04:42</published>
  <title>if修飾子 - 後置のif</title>
  <type>rich</type>
  <url>https://perlcodesample.hatenadiary.jp/entry/20080324/1206371082</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
