in reply to REGexp match query
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: REGexp match query
by Anonymous Monk on Oct 09, 2015 at 13:53 UTC | |
by Laurent_R (Canon) on Oct 09, 2015 at 15:42 UTC |