[問題] perl 問題

看板Perl作者時間13年前 (2012/03/05 20:33), 編輯推噓0(002)
留言2則, 2人參與, 最新討論串1/1
我有一個問問題麻煩大大幫我解答 有一個檔案內容如下: vector ((xx_xi_rtc, xx_pwc_rstinb, xx_pwc_pc_ref, xx_pwc_wkup, xx_pwc_pseq1, xx_pwc_wkup1, xx_pwc_pseq2, xx_pwc_wkup3)) $tset tset1 > 00000000; /*0, 0.00nS*/ $tset tset1 > 00010000; /*0, 0.00nS*/ $tset tset1 > 00001000; /*0, 0.00nS*/ $tset tset1 > 00000100; /*0, 0.00nS*/ 八個vector 名為xx_xi_rtc xx_pwc_rstinb xx_pwc_pc_ref xx_pwc_wkup xx_pwc_pseq1 xx_pwc_wkup1 xx_pwc_pseq2 xx_pwc_wkup3 相對應值為 00000000 00010000 00001000 00000100 若輸入xx_xi_rtc則把四個test test1 中所相對應xx_xi_rtc的0都換成1 請問這樣該如何寫ㄋ? ps: 上面是簡化例子 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.34.221.29

03/05 22:17, , 1F
ㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋ
03/05 22:17, 1F

03/07 01:09, , 2F
ㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋㄋ
03/07 01:09, 2F
文章代碼(AID): #1FLBA5_i (Perl)
文章代碼(AID): #1FLBA5_i (Perl)