just perldoc -f scalar
There is no equivalent operator to force an expression to be interpolated in list context because in practice, this is never needed. If you really wanted to do so, however, you could use the construction @{[ (some expression) ]} , but usually a simple (some expression) suffices."but usually a simple (some expression)" suffices looks like an unneccessary myth! ; )
Cheers Rolf
In reply to Re^10: Operator overloading with returning lists?
by LanX
in thread Operator overloading with returning lists?
by renormalist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |