Unary + (~) forces Number (String) context to its argument.# Perl 6 $obj.method( foo => +some_number_returning_func(), bar => ~some_string_returning_func(), );
In reply to Re: how to force scalar context (without scalar())?
by iblech
in thread how to force scalar context (without scalar())?
by borisz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |