删除空目录perl

ericming200409 2009-10-13 03:46:46

use warnings;
chdir "D:\\myperl";
unlink glob "* .*";
rmdir "D:\\myperl";

who can tell me why the codes above does not work?
there is no directory under "D:\\myperl".
which is the right way to remove a directory?
...全文
96 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
ericming200409 2009-10-13
  • 打赏
  • 举报
回复
the problem is resolved,thank you
hecius 2009-10-13
  • 打赏
  • 举报
回复
when you have executed unlink glob "* .*";
now your current work directory is D:\\myperl, it is running,you can change current work directory to others,so that you can execute rmdir "D:\\myperl"; .
you can try it. good luck!

37,721

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧