if (($outputlist[$_] = /^0/) && ($outputlist[$_] = /^0\s(\d+)\s(\d+)/)) {
That line contains assignments (the = operator) rather than matches (the =~ operator). Try using the latter and see how much closer you get to your desired functionality. See also perlop for more on operators.
In reply to Re: REGexp match query
by hippo
in thread REGexp match query
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |