in reply to Re^3: Why is "any" slow in this case?
in thread Why is "any" slow in this case?
Why do we need $1 to be magic, when it's read-only?
Threading?
> would be to preemptively copy substrings of the matched string into
if this is about avoiding overhead for optional variables, retrieving it just once on demand would be sufficient.
The OP is accessing the same $1 4 times in a row.
the code examples were updated in the parent post while I was replying.
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Why is "any" slow in this case?
by ikegami (Patriarch) on Jul 28, 2025 at 18:18 UTC | |
by LanX (Saint) on Jul 28, 2025 at 20:33 UTC | |
by ikegami (Patriarch) on Jul 29, 2025 at 11:35 UTC |