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

    That doesn't help either

      And that answer does not help us helping you. "It does not work" or "it does not help" is a very poor diagnostics and does not give us monks any clue as to how to further help you. Please explain in which respect it does not help you.

      Update: corrected a typo (s/\sup\s/\sus\s/).