Hello world/Line printer: Difference between revisions

Content deleted Content added
→‎{{header|Perl}}: use 3-arg form, also add Perl 6 entry
Line 222:
 
<lang ruby>open("| lpr", "w") { |f| f.puts "Hello World!" }</lang>
 
=={{header|SNOBOL4}}==
 
In SNOBOL4, variables can be associated with input and output files. Assigning a value to an output-associated variable also writes it to the associated output file. (Likewise, accessing a variable associated with an input file returns as its value the next record from the associated input file.) By default, the variable "input" is associated with standard input, and the variable "output" is associated with standard output.
 
<lang SNOBOL4> output = "Hello, world."</lang>
 
=={{header|Tcl}}==