in reply to combining array items to match a certain string

<<how can we combine the items of the newly generated array in order to form the string "cowboycatdog" again?>>

If you generate a hash of arrays like this
my $h = { cowboy => [ cow, boy ], cat => undef, dog => undef }
you can easaly find you string again?

HTH,

PooLPi