Before I write this code myself, I thought I'd check to see if anyone has any suggestions of existing CPAN modules or code snippets that would help me along my way. I want to write a simple script to shuffle a bunch of people for a gift exchange. The complicating factor is that I want to make sure that significant others aren't matched with each other. So given a group of people a, b, c and d where a and b are SOs, a can be matched with anyone but b and vice versa while c and d can be matched with anyone.
Any suggestions?
perl -e 'split//,q{john hurl, pest caretaker}and(map{print @_[$_]}(joi
+n(q{},map{sprintf(qq{%010u},$_)}(2**2*307*4993,5*101*641*5261,7*59*79
+*36997,13*17*71*45131,3**2*67*89*167*181))=~/\d{2}/g));'