Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Arrays merges and redundancies

by Anonymous Monk
on Mar 30, 2012 at 19:51 UTC ( [id://962676]=note: print w/replies, xml ) Need Help??


in reply to Re: Arrays merges and redundancies
in thread Arrays merges and redundancies

From the following studpi example;

@IDs = qw(Apple Apple Grape Banana Banana) @Price = qw(5 5 2 3 4 ) @Amount = qw(10 15 3 4 4 ) I want; @IDs = qw(Apple Grape Banana) @Price = qw(5 2 3/4) @Amount = qw(10/15 3 4)

Ithought about using hashes but for that I need unique key and IDs are not unique. Sorry for vague explanations and thanks for help.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-03-19 06:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found