in reply to qr for recursive regex?
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: qr for recursive regex?
by darisler (Initiate) on May 28, 2014 at 19:15 UTC | |
by Limbic~Region (Chancellor) on May 28, 2014 at 19:20 UTC |