Velocity Reviews > Perl > Combining three arrays of hashes into one?

# Combining three arrays of hashes into one?

Keith Lee
Guest
Posts: n/a

 02-17-2006
All:
Is there a way of copying three arrays of hashes into one array for
future sorting? Thanks!

Keith

Matt Garrish
Guest
Posts: n/a

 02-17-2006

"Keith Lee" <(E-Mail Removed)> wrote in message
news(E-Mail Removed)...
> All:
> Is there a way of copying three arrays of hashes into one array for
> future sorting? Thanks!
>

@d = (@a, @b, @c)

Or do you mean something else?

Matt

Guest
Posts: n/a

 02-17-2006

Keith Lee wrote:
> All:
> Is there a way of copying three arrays of hashes into one array for
> future sorting? Thanks!
>

do you mean 3 arrays of hash references? on what is your sorting based?
to combine 3 arrays into one, just flatten them:

my @all = ( @a1, @a2, @a3 );

robic0
Guest
Posts: n/a

 02-17-2006
On Thu, 16 Feb 2006 17:45:45 -0800, Keith Lee <(E-Mail Removed)> wrote:

>All:
> Is there a way of copying three arrays of hashes into one array for
> future sorting? Thanks!
>
>Keith

Lookout, I'm asking you post an example to coincode with your what
ever bullshit question/without example you are posting!

cmarvel@nethere.com
Guest
Posts: n/a

 02-18-2006
Thanks! I mean an array of hashes.
Speaking of sorting, does anyone know of a good quick sort program or
algorithm so I can sort an array of hashes? Each array element has
four keys to sort by. Thanks again!

Keith

A. Sinan Unur
Guest
Posts: n/a

 02-18-2006
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote in news:1140230909.684967.322460

> Thanks! I mean an array of hashes.
> Speaking of sorting,

It looks like you are talking to yourself. Please quote some context when

Sinan

--
A. Sinan Unur <(E-Mail Removed)>
(reverse each component and remove .invalid for email address)

comp.lang.perl.misc guidelines on the WWW:

Rick Scott
Guest
Posts: n/a

 02-18-2006
((E-Mail Removed) uttered
> Thanks! I mean an array of hashes.
> Speaking of sorting, does anyone know of a good quick sort program or
> algorithm so I can sort an array of hashes? Each array element has
> four keys to sort by. Thanks again!

The command "perldoc -q keyword" searches the Perl FAQ. If you would
have asked it about "sort", it would have given you a perfectly good

perldoc -q sort
# How do I sort an array by (anything)?

Please read the posting guidelines, and look over the Perl FAQ and
here.

Rick
--
key CF8F8A75 / print C5C1 F87D 5056 D2C0 D5CE D58F 970F 04D1 CF8F 8A75
The Perl motto is "There's more than one way to do it."
Divining how many more is left as an exercise to the reader.
erl(1) manpage

Guest
Posts: n/a

 02-18-2006
(E-Mail Removed) <(E-Mail Removed)> wrote:

> Thanks!

To whom?

For what?

Please quote some context in followups like everybody else does.

Have you seen the Posting Guidelines that are posted here frequently?

> Speaking of sorting, does anyone know of a good quick sort program or
> algorithm so I can sort an array of hashes?

Sure, anybody who has looked up sorting in the Perl Frequently
Asked Questions knows how to do that.

You should become one of those people.

perldoc -q sort

> Each array element has
> four keys to sort by.

The FAQ answer shows how to sort based on multiple sort keys.

--
(E-Mail Removed) Perl programming
Fort Worth, Texas

robic0
Guest
Posts: n/a

 02-22-2006
On Fri, 17 Feb 2006 23:37:15 GMT, "Frank J. Russo" <(E-Mail Removed)> wrote:
On Thu, 16 Feb 2006 17:45:45 -0800, Keith Lee <(E-Mail Removed)> wrote:

>>>All:
>>> Is there a way of copying three arrays of hashes into one array for
>>> future sorting? Thanks!
>>>
>>>Keith

>>Lookout, I'm asking you post an example to coincode with your what
>>ever bullshit question/without example you are posting!

>That was unnecessary. Your choice of words / limited vocabular, would make
>one not even want to pay attention to you no matter what you have to say.
>Words have meaning. Use them properly.
>

Its hard not to be rude to the Christian God people like you.
You didn't quote, so I did it for you.

This is Usenet, this isin't your local church gathering. If my limited vocabulary
bothers you, perhaps you should filter out my posts and not trouble yourself so much.

If this is a relative of yours, I had no intentions to offend him as not anyone else
(except for a select few that I know).

However, you on the otherhand. You can kiss my goddamed fucnkin ass !!!!