Re: [問題] 陣列問題
※ 引述《savealone (嘴砲馬)》之銘言:
: 請問一下,@format_deny = qw/glass text\/xml:text\/html image\/jpeg/;
: 像上面這樣單字串列會有錯誤嘛
: 因為裡面有規避字符(/),不知道這樣寫會問題嘛?
: 因為我在pietty上面寫,可是他的顏色變化很奇怪
: 謝指教:)
用 qw{} 看起來會比較舒服:
@format_deny = qw{glass text/xml:text/html image/jpeg};
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.113.235.132
討論串 (同標題文章)
Perl 近期熱門文章
PTT數位生活區 即時熱門文章