Try the first() function in List::Util.
-- Ken
In reply to Re: Grep 1st word of strings in array by kcott in thread Grep 1st word of strings in array by imtakinbioinformatic