文件操作 - 10-stuff.t
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/doc/perl-Test-Harness/examples/t/10-stuff.t
编辑文件内容
#!/usr/bin/perl -wT use strict; use warnings; use Test::More qw/no_plan/; ok 1, 'this test passes'; is_deeply [2], [3], 'this is_deeply test fails'; SKIP: { skip 'testing skip', 2 if 1; ok 1; ok 1; } TODO: { local $TODO = 'this is a TODO test'; ok 0, 'This should succeed'; ok 1, 'This should fail'; }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件