@list1 = sort(@list1,@list2) seems to do what you want to do.

On 5/19/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:

Wizards,

I know this is a no-brainer, but like I said...

I'm sure there's something somewhere that will handle merging a sorted list
of text into a larger sorted list of text, I'm just having a case of the
lazy-thumbs today. Anybody care to point me in the right direction?  Here's
what I'm trying to do:

@list1 = qw( artist awful billy blunder)
@list2 = qw( attitude blatherskite)

# something magical happens, and the contents of @list1 are now
# 'artist', 'attitude', 'awful', 'billy', 'blatherskite', 'blunder'

Thanks.

Deane
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe:
http://listserv.ActiveState.com/mailman/mysubs



_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to