1
-e /path/to/file or die "file doesn't exist";
是否有可能做这样的事情:
-p /path/to/pipe or die "not a valid pipe";
-e /path/to/file or die "file doesn't exist";
是否有可能做这样的事情:
-p /path/to/pipe or die "not a valid pipe";
事实上,你可以使用-p
(见perlfunc所有在Perl中可用的filetest运营商)。
呃,我使用的网站没有列出所有选项。感谢您的帮助,现在只有官方的perldoc。 – n0pe
@MaxMackie:什么是网站? –