Also note that while there is no similar keyword for forcing list context, it can be done with @{[]}, as in print @{[<STDIN>]}, but actually using that is an advanced feature and if you force list context in a scalar context, you will get the number of items in the list rather than any of the values in list.
In reply to Re^4: Printing from stdin to stdout
by jcb
in thread Printing from stdin to stdout
by harangzsolt33
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |