[問題] 目錄與新檔

看板Perl作者 (薰)時間18年前 (2007/08/06 10:56), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
一般都是用絕對的方式去產生新目錄 或是把檔案寫到檔案 有方法是可以讓使用者自己輸入要建立的資料夾及檔案名稱嗎? 我這樣寫,不過無法產生 print "please enter the name of directory\n"; $file=<STDIN>; mkdir "c:\\test\\$file"; -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.65.55.161
文章代碼(AID): #16jetmib (Perl)
討論串 (同標題文章)
文章代碼(AID): #16jetmib (Perl)