in reply to most terse regex match count
Is it possible to force list context in a conditional?
A variation of the "Saturn" operator does the trick: if ( 2 == ( () = $outs =~ m|A|gs ) )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: most terse regex match count
by Veltro (Hermit) on May 17, 2019 at 14:38 UTC | |
by haukex (Archbishop) on May 18, 2019 at 19:13 UTC |