Copy stdin to stdout: Difference between revisions

m
(→‎{{header|Perl 6}}: Add a Perl 6 example)
Line 9:
 
=={{header|Perl 6}}==
When invoked at a command line: Slightly less magical than Perl / Sedsed. The p flag means automatically print each line of output to STDOUT. The e flag means execute what follows inside quotes. ".lines" reads lines from the assigned pipe (file handle), STDIN by default.
 
<lang perl6>perl6 -pe'.lines'</lang>
10,343

edits