http://qs1969.pair.com?node_id=256809


in reply to avoiding the hash

Yuk:
for (0 .. scalar(@array1)) { $temparray[$_] = $array[$_] . '|' . $array2[$_]; }
then you can split @temparray on the bar (|)

Smitz
this reply makes me feel dirty

Replies are listed 'Best First'.
Re: Re: avoiding the hash
by Anonymous Monk on May 09, 2003 at 10:24 UTC
    perfect - thankyou!
Re: Re: avoiding the hash
by Skeeve (Parson) on May 09, 2003 at 10:26 UTC
    will fail as soon as you have '|' in any of array's elements.
      He says numbers. The first time I too thought he needs an escape function.
      I wondered if there was a way of pairing up the numbers from two arrays

      I assumed numbers in this case matched \d

      Smitz

      Update Messed up my Regex, thanks nkuvu