in reply to Grep 1st word of strings in array

Try the first() function in List::Util.

-- Ken

Replies are listed 'Best First'.
Re^2: Grep 1st word of strings in array
by Marshall (Canon) on Mar 07, 2012 at 17:32 UTC
    I may have misunderstood the OP's intent. But it appears to me that a simple regex to get the first "word" after the ">" is all that is required.

      You could be right. Some sample input and expected output would be helpful.

      -- Ken