<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>srkzhr</author_name>
  <author_url>https://blog.hatena.ne.jp/srkzhr/</author_url>
  <blog_title>半径5メートル</blog_title>
  <blog_url>https://srkzhr.hatenadiary.org/</blog_url>
  <categories>
    <anon>Perl</anon>
  </categories>
  <description>「Effective Perl」でgrepとmapの使い分けについて学んだので簡単な纏めです。 #!/usr/bin/perl use strict; use warnings; chomp (my @list = `ls *.txt`); # 元の要素から抽出したものだけのリスト my @grepped = grep { /(.*)\.txt$/ } @list; print join &quot;,&quot;, @grepped, &quot;\n&quot;; # 元の要素のコピーから加工した別のリスト my @mapped = map { /(.*)\.txt$/ } @list; print join &quot;,&quot;, @map…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsrkzhr.hatenadiary.org%2Fentry%2F20071108%2F1194539823&quot; title=&quot;grepとmapの使い分け - 半径5メートル&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>2007-11-08 01:37:03</published>
  <title>grepとmapの使い分け</title>
  <type>rich</type>
  <url>https://srkzhr.hatenadiary.org/entry/20071108/1194539823</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
