2009-05-15から1日間の記事一覧
file_or_dir()とdir_or_file()というヘルパーを用意しました。使い方はこんな感じ。 use strict; use warnings; use Path::Extended; my $maybe_file = file_or_dir('path/to/something'); if ($maybe_file->is_dir) { warn "this is not a file!"; } else {…
file_or_dir()とdir_or_file()というヘルパーを用意しました。使い方はこんな感じ。 use strict; use warnings; use Path::Extended; my $maybe_file = file_or_dir('path/to/something'); if ($maybe_file->is_dir) { warn "this is not a file!"; } else {…