作者psylove5566 (醜妞)
看板Perl
標題[問題] 新手提問
時間Tue May 21 14:47:08 2013
我在執行一個perl程式時,出現了error,我看程式中顯示error行的內容如下:
$l eq "<BeginHMM>" || die "Unexpected line $l\n";
error如下:
Unexpected line <BeginHMM>
我不太懂的是$l 和 <BeginHMM>是相同的,為啥會判斷為不相同??
請教各位大大
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.113.144.78
1F:→ imce:會不會是eq 和 ||的判斷順序問題,($l eq "<BeginHMM>")||die 05/21 14:49
2F:→ imce:括號括起來試試看 05/21 14:50
3F:→ psylove5566:還是有一樣的error耶 05/21 14:59
4F:→ scwg:$l 裡有沒有空白或換行? 05/22 02:00
5F:→ posture:數值跟字串的比對?$1怎麼產生的 06/28 12:15