Regex pattern objects are magical. Overloading doesn't even come into play.
so what about this???
output: overloadedpackage Regexp; use overload q{""} => sub {return "overloaded" } ; package main; my $rx = qr/a/; print $rx;
Cheers Rolf
UPDATE: Finally got it! 8)
In reply to Re^2: What is the best way to compare variables so that different types are non-equal?
by LanX
in thread What is the best way to compare variables so that different types are non-equal?
by ELISHEVA
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |