<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gzutetsu</author_name>
  <author_url>https://blog.hatena.ne.jp/gzutetsu/</author_url>
  <blog_title>グズてつのぼやき</blog_title>
  <blog_url>https://gzutetsu.hatenablog.jp/</blog_url>
  <categories>
    <anon>勉強</anon>
  </categories>
  <description>Perlを使ってテキストの加工をよくする。と言っても，Perlのことはほとんどわかっていない。いつも適当に，思い通りの結果が出ればOKという処理。だから基礎からなっていない。 以前にも少し記録したが，そうだったんだ，と思ったときにここに書いておくことにしたい。カレントディレクトリのファイルリストを取得して，そこにある特定の拡張子のファイルに処理をしたいことがある。こんなふうにやってみた。 foreach $file () { @filename = split(/\./, $file); if ($filename[1] eq &quot;tex&quot;) { … } }カレントディレクトリの移動する必要があ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgzutetsu.hatenablog.jp%2Fentry%2F20080308%2Fp3&quot; title=&quot; Perlの基礎（$file()，chdir，パターンマッチ，sort） - グズてつのぼやき&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-08 00:00:02</published>
  <title> Perlの基礎（$file()，chdir，パターンマッチ，sort）</title>
  <type>rich</type>
  <url>https://gzutetsu.hatenablog.jp/entry/20080308/p3</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
