in reply to Re^3: grep and dereferencing an array of arrays
in thread grep and dereferencing an array of arrays
Since the answers have been randomized, the program has to match the entered answer letter ('a..d') to the 'W' or 'R' that is the second element of one of the elements of the $qablock. Only then can the actual answer be recorded for later scoring (since the answer 'b' has no lasting significance).========== $VAR1 = [ [ 'a', 'W', 'interupt' ], [ 'b', 'R', 'interrupt' ], [ 'c', 'W', 'innterupt' ], [ 'd', 'W', 'intterupt' ] ]; ==========
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: grep and dereferencing an array of arrays
by McA (Priest) on Sep 06, 2013 at 20:34 UTC | |
by choroba (Cardinal) on Sep 06, 2013 at 21:04 UTC | |
by McA (Priest) on Sep 06, 2013 at 21:12 UTC | |
|
Re^5: grep and dereferencing an array of arrays
by Marshall (Canon) on Sep 07, 2013 at 09:25 UTC |