devel/p5-Devel-SawAmpersand 0.33p2 OpenBSD
assert performance of perl regexps
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- The OpenBSD ports mailing-list <[email protected]>
- Categories
- devel, perl5
Description
The Devel::SawAmpersand module only provides one function:
$bool = Devel::SawAmpersand::sawampersand();
which is set to true if perl saw any of $`, $', $& in its code.
Devel::FindAmpersand is a bit more precise.
B::FindAmpersand is supposed to scan code to look for those variables, but it doesn't appear to be very reliable.
Due to some design decisions, regexp matching suffers from performance issues as soon as one of these variables is used.
Install
Binary package:
pkg_add p5-Devel-SawAmpersand
From the ports tree:
cd /usr/ports/devel/p5-Devel-SawAmpersand && make install
Dependencies
No port depends on this one.