On 2012-01-23T19:40:26Z, DROLSKY wrote:
Show quoted text> I think it'd make sense to hold off and see how smart match changes
in
Show quoted text> future Perls. The current implementation may be deprecated and
replaced
Show quoted text> with something simpler.
As I understand it, the plan is to possibly change the implementation
in favour of DOY's smartmatch::engine stuff which allows pluggable
smartmatch engines, with at least two engines bundled with Perl: a
backward compatible one, plus a simplified one used by default for "use
5.16" and above.
Having looked at the code for both of these engines, the overloading I
suggest would work under both of them.
http://cpansearch.perl.org/src/DOY/smartmatch-engine-core-0.02-TRIAL/
lib/smartmatch/engine/core.pm
https://github.com/doy/smartmatch-engine-rjbs/blob/master/lib/
smartmatch/engine/rjbs.pm