看板 Perl 關於我們 聯絡資訊
※ 引述《gordon0730 (含仔)》之銘言: : 聽人說perl跟python是直譯式語言 : 在linux command mode輸入python : Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) : [GCC 4.4.5] on linux2 : Type "help", "copyright", "credits" or "license" for more information. : 就會進入python直譯模式 : 想請問perl的直譯模式要怎麼打開? : 直接打perl就會進入一片空白 : 這時後似乎不管打什麼都沒有反應 (是不是還要加入什麼指令?) : 難道都要像這樣輸入 : perl -e 'print "Hello, world\n" : 才能夠直譯嗎? 打入perl後會進入空白畫面 然後在這畫面下輸入你的程式碼 輸入完後用ctrl-D就能執行你的程式碼 但我用過的經驗 我只能老實講 真的不是很好用 還不如弄一個好一點的IDE ※ 編輯: abliou 來自: 140.113.7.249 (06/24 13:37)
kdjf:我是用vi, 然後w !perl - 06/24 13:38
xatier:我都是vim xx.pl => chmod +x xx.pl => ./xx.pl 06/24 15:20
xatier:IDE 的話推 Padre 06/24 15:21
dryman:perl -d 然後ctrl-D ,就進入interactive模式 06/24 15:49
abliou:狂推樓上 06/24 16:23
gordon0730:感謝~ 06/24 16:51