Source Package: perl-smartmatch (0.05-39.fc43)
Pluggable smart matching back-ends
This module allows you to override the behavior of the smart match operator ("~~"). "use smartmatch $matcher" hooks into the compiler to replace the smartmatch opcode with a call to a custom subroutine, specified either as a coderef or as a string, which will have "smartmatch::engine::" prepended to it and used as the name of a package in which to find a subroutine named "match". The subroutine will be called with two arguments, the values on the left and right sides of the smart match operator, and should return the result.
Package information
- Homepage
- [https://metacpan.org/release/smartmatch]
- License
- GPL-1.0-or-later OR Artistic-1.0-Perl
- Maintainer del pacchetto downstream
- jplesnik, ppisarObserved Nov 24, 2026 [source]
The following binary packages are built from this source package:
- perl-smartmatch
Pluggable smart matching back-ends
