Try an @array instead or call it in a loop in scalar context (ie grabbing with $1)
Furthermore it seems like a \s+ is missing where you test for whitespace.
In reply to Re: How to find a string after matching a Keyword
by LanX
in thread How to find a string after matching a Keyword
by pr33
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |