Wayne,

I overstated the simplicity. Each list is divided into parts, viz.

[ADD]
add this
add this too
[DELETE]
delete this
delete this as well
[END]

would be the "recipient", while the "donor" could be

[ADD]
add this as well
[DELETE]
delete this too
[END]

or

[ADD]
[DELETE]
[END]

or anything in between.

What I need to do is merge the donor data into the recipient list.  Not quite the duh solution you proposed, but that was my fault for oversimplifying.

Thanks.



Wayne Simmons <[EMAIL PROTECTED]>

05/19/2006 11:03 AM

       
        To:        "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
        cc:        
        Subject:        RE: No-brainer, pressed for time




@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'

@sortedlist = sort (@list1,@list2);

duh.
:-D

-Wayne

--
CAM Automation Programmer
Unicircuit Inc.
Littleton, Colorado
303-738-5390

-- Warning Corporate Disclaimer to follow this line. --

This electronic mail transmission and any attachments contain information
belonging to the sender which may be confidential, privileged and exempt
from disclosure under applicable law.  This information is intended only for
the use of the individual or entity to whom this electronic mail
transmission is addressed.  If you are not the intended recipient or the
employee or agent responsible for delivering the message to the intended
recipient, you are hereby notified that any disclosure, copying,
distribution, or action taken or not taken in reliance on the contents of
the information contained in this transmission is strictly prohibited.  If
you have received this transmission in error, please immediately inform me
by "reply" e-mail and delete the message in its entirety.  Thank you.
Unicircuit, Inc.



 
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, May 19, 2006 9:10 AM
To: [email protected]
Subject: No-brainer, pressed for time


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

Reply via email to