Could you please be more specific and provide some use cases?
Binary operators are difficult even with overloading, but something like
from {List} $scalar
could be easily done with prototypes. ( i.e. sub from (&$) {...} )
Btw: how does Python compare? == or eq ?
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re: Create a new operator, get LHS ( prototype )
by LanX
in thread Create a new operator, get LHS
by stevieb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |