in reply to Putting an array into a hash
This should do the job, %data = map {/(\w+)\s*(\w+)/} @info; That will key the hash with the first word and place the next word as value. You may want to replace that with split ' ', $_, 2, so that punctuation in the data or multi-word values don't give mangled results. For instance, in your data, your regex will cut off the email address at the @ sign.
%data = map {split ' ', $_, 2} @info;After Compline,
Zaxo
|
---|