|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re^4: Why is "any" slow in this case?by LanX (Saint) |
| on Jul 28, 2025 at 16:54 UTC ( [id://11165840]=note: print w/replies, xml ) | Need Help?? |
|
Well the question could be rephrased into 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.
Updatethe code examples were updated in the parent post while I was replying.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||