in reply to Re^3: Printing from stdin to stdout
in thread Printing from stdin to stdout
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Printing from stdin to stdout
by haukex (Archbishop) on Aug 27, 2019 at 09:42 UTC |