Sorry I had to rush this so it is untested and it may not be explained enough but I hope it makes sense.my @result = $prBoundaryString =~ m{$coord}g; # check if scalar (@result / 2) % 2 == 1 # or my $count = 0; while ($prBoundaryString =~ m{$coord}g) { my ($x, $y) = ($1, $2); $count++; }
Cheers - L~R
In reply to Re: qr for recursive regex?
by Limbic~Region
in thread qr for recursive regex?
by darisler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |