Untested, but does this do what you want?
my @poly = map { [ (split /,/, $_)[0, 1] ] } split / /, $coords;In reply to Re: Fastest way to turn coordinate list into array
by chromatic
in thread Fastest way to turn coordinate list into array
by brancusi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |