Note that prefix '~~' still works like it did previously. Therefore if foo is a sub, then foo~~bar will be parsed as foo(~~bar) unless foo has prototype ().To get a smartmatch on the result of foo, you'd write foo() ~~ $var
In reply to Re^6: Smart match in p5
by xmath
in thread Smart match in p5
by xmath
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |