switch ($array[0]) { case (/Time_Stamp/i) { @time = split (/-/, $array[1]); $date_submited = $time[0]; $time_submited = $time[1]; } case (/eqpid/i) { $eqpid = $array[1]; # $eqpid=substr ($array[1], -1, 1, ); $chambernum = substr ($array[1], -1, 1); switch ($chambernum){ case (/A/i) {$chamber = 1;} case (/B/i) {$chamber = 2;} case (/C/i) {$chamber = 3;} case (/D/i) {$chamber = 4;} } } case (/AlarmType/i) {$alarmtype = "$array[1]";} case (/LotID/i) { @lotid = split( /-/, $array[1] ); $lotid = "$lotid[0]"; $wafer_flow = "$lotid[1]-$lotid[2]"; } case (/Code/i) {$code = "$array[1]";} case (/UserCode/i) { # $usercode = "$array[1]"; print "User = $array[1]"; } look at the case for code and Usercode
In reply to Re^2: Case Statement
by phimtau123
in thread Case Statement
by phimtau123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |