Hello world/Line printer: Difference between revisions

→‎{{header|Ruby}}: Use lpr to print.
(removed duplicated c++ code)
(→‎{{header|Ruby}}: Use lpr to print.)
Line 214:
 
=={{header|Ruby}}==
Assumes that <code>lpr</code> command reaches printer.
{{incorrect|Ruby|It prints to standard out rather than to a line printer (which is a peripheral device).}}
 
<lang ruby>
<lang ruby>open("| lpr", "w") { |f| f.puts "Hello World!" }</lang>
</lang>
 
=={{header|Tcl}}==
Anonymous user