By adding a ? to the regex code
my @result = map {m/(.*?)\s+:/} @list;
I think it now works:
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
In reply to Re: Re: Re: golf anyone? (taking first field)
by CountZero
in thread golf anyone? (taking first field)
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |