good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Efficient way to verify scalar contentsby LanX (Saint) |
on Jun 22, 2020 at 13:32 UTC ( [id://11118366]=note: print w/replies, xml ) | Need Help?? |
my goal was maintainability, if speed mattered, I'd move the declaration of the rules and rulesets out of the sub. redefining them each time is useless. Also using regex-refs via qr// is faster, but code-refs allow implementing more complex rules if requirements change.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|