Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: avoiding the hash

by smitz (Chaplain)
on May 09, 2003 at 10:09 UTC ( [id://256809]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://256809]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-19 05:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found