in reply to Binding operator RAM eater
it's not clear to me what you are trying to achieve. It looks like you are trying to count the number of times the string 'regex' appears in your content, but that not very useful so ...
Why store the intermediate data at all? Just use a while loop, something like this
$test = "test 1 2 test 15 67 test 435 578"; while ( $content =~ /test (\d+) (\d+)/g) { say "test from $1 to $2"; }
If that's not what you want, show us what you're searching for, and a small amount of example data.
|
|---|