开发者

How do I check if file is a named pipe in perl?

开发者 https://www.devze.com 2023-03-26 08:45 出处:网络
Kind of like: -e /path/to/file or die \"file doesn\'t exist\"; Is i开发者_如何学Ct possible to do something like:

Kind of like:

-e /path/to/file or die "file doesn't exist";

Is i开发者_如何学Ct possible to do something like:

-p /path/to/pipe or die "not a valid pipe";


You can indeed use -p (see perlfunc for all the filetest operators available in Perl).

0

精彩评论

暂无评论...
验证码 换一张
取 消