看板 Perl 關於我們 聯絡資訊
※ 引述《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
handsomegirl:謝謝~少了一行原來那麼重要~ 08/06 11:35
handsomegirl:chdir ("c:\\test\\chart"); 這也可以這樣做嗎? 08/06 11:36
handsomegirl:希望可以自己輸入路徑值,再去glob 08/06 11:39
handsomegirl:找到了 用法一樣就可以了~ 08/06 12:59
LiloHuang::) 08/06 13:23