引用 | 編輯
RandeonNeo
2006-02-11 23:38 |
樓主
▼ |
||
x0
#!/usr/bin/perluse strict; use warnings; exec "perl ./bin/UTR2SQ.pl". " ./UTRdb/Vrl_5Utrnr.dat testdir1 test.log". & .. 訪客只能看到部份內容,免費 加入會員 x0
|
引用 | 編輯
martinyueh3
2006-02-12 18:16 |
1樓
▲ ▼ |
代表執行程式
就跟 開始->執行是ㄧ樣的 也跟"命令提示字元"ㄧ樣... 在字串外的"."代表是字串結合 a="s"."c" a就是sc ./則代表是這層目錄 x1 |
引用 | 編輯
RandeonNeo
2006-02-12 23:36 |
2樓
▲ ▼ |
感謝martinyueh3副版主~~
那個exec()跟"."的意思我明白了...可是還有一個小小的問題~ 當程式執行之後,呼叫Perl去執行UTR2SQ.pl,而後面的兩個字串全部都變成參數了嗎?? 也就是說 $ARGV[0]=./UTRdb/Vrl_5Utrnr.dat testdir1 test.log $ARGV[1]=./param/400.param 3495 3500 不知道我這樣子寫對不對^^" x0 |
引用 | 編輯
martinyueh3
2006-02-13 16:23 |
3樓
▲ |
perl ./bin/UTR2SQ.pl ./UTRdb/Vrl_5Utrnr.dat testdir1 test.log ./param/400.param 3495 3500
$ARGV[0]=./UTRdb/Vrl_5Utrnr.dat $ARGV[1]=testdir1 $ARGV[2]=test.log $ARGV[3]=./param/400.param $ARGV[4]=3495 $ARGV[5]=3500 x1 |