• 追加された行はこの色です。
  • 削除された行はこの色です。
* ファイル・ディレクトリハンドラ操作 [#eb03d34b]
* ファイル・ディレクトリ操作 [#eb03d34b]

File::Pathを使う。
Path::Classを使う。

** あるディレクトリ内のファイル(ディレクトリ)を全削除 [#pe19cd9f]
 my $dir = dir('tmp');
 foreach my $ent ($dir->children) {
    $ent->remove();
 }

** 参考 [#n04aae82]
http://search.cpan.org/perldoc?File::Path
http://search.cpan.org/perldoc?Path::Class


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS