作者LiloHuang (相见不如怀念)
看板perl
标题Re: [问题] 目录与新档
时间Mon Aug 6 11:01:56 2007
※ 引述《handsomegirl (薰)》之铭言:
: 一般都是用绝对的方式去产生新目录 或是把档案写到档案
: 有方法是可以让使用者自己输入要建立的资料夹及档案名称吗?
: 我这样写,不过无法产生
: print "please enter the name of directory\n";
: $file=<STDIN>;
: mkdir "c:\\test\\$file";
print "please enter the name of directory\n";
$file=<STDIN>;
chomp $file;
mkdir "c:\\$file";
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.230.160.177
1F:推 handsomegirl:谢谢~少了一行原来那麽重要~ 08/06 11:35
2F:→ handsomegirl:chdir ("c:\\test\\chart"); 这也可以这样做吗? 08/06 11:36
3F:推 handsomegirl:希望可以自己输入路径值,再去glob 08/06 11:39
4F:推 handsomegirl:找到了 用法一样就可以了~ 08/06 12:59
5F:推 LiloHuang::) 08/06 13:23