in reply to Where can I find more examples of use of Special Backtracking Control Verbs?
E.g. to calculate some statistics:my $string = <>; my %substrings; $string =~ /(.+)(?{ $substrings{ $1 } = 1 })(*FAIL)/;
But have no experience of using PRUNE, SKIP and others :)/ (\b\d+\b) .*? (\b\d+\b) (?{ $count += $1 > $2 }) (*FAIL) /x;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Where can I find more examples of use of Special Backtracking Control Verbs?
by rsFalse (Chaplain) on Nov 07, 2018 at 12:30 UTC |