Jump to content

Hello world/Line printer: Difference between revisions

added ocaml
(Adding Ada example)
(added ocaml)
Line 154:
<lang j>require'print'
print'Hello world!'</lang>
 
=={{header|OCaml}}==
Assuming that the line printer is attached to /dev/lp0
<lang ocaml>let () =
let oc = open_out "/dev/lp0" in
output_string oc "Hello world!\n";
close_out oc ;;</lang>
 
=={{header|Perl}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.