DAG*_*DAG 2 perl
我创建了一个使用abs_path但不能正确处理主目录的perl脚本(由'〜'表示)
abs_path
EG,如果我试着打电话 abs_path("~/mystuff");
abs_path("~/mystuff");
它返回 undef
undef
我可以abs_path正确处理主目录吗?如果没有,我可以使用另一种选择吗?
And*_*ark 5
#!/usr/bin/perl use File::HomeDir; print File::HomeDir->my_home;
归档时间:
15 年,1 月 前
查看次数:
1990 次
最近记录: