1
2
Introduction
Everyone's first program outputs Hello World!
. This program should be very simple, that's all you have to do.
Challenge
Output the string Hello World!
to the STDERR
.
Rules
- If your language doesn't support
STDERR
orSTDERR
doesn't exist for it, you can output it to it's corresponding error system. - You can't output anything else to
STDERR
except forHello World!
. - You can't output anything to
STDOUT
or take any input fromSTDIN
- You can't read any content from files.
This is code-golf, so the shortest answer in bytes wins.
3PHP has stderr. – None – 2016-01-24T21:57:04.603
5@Mego I personally don't think it's a duplicate. Seeing as how the output method is required to be different, programs cannot just be stolen from that challenge. – ETHproductions – 2016-01-24T22:15:02.073
2@ETHproductions IMO the different output method (
STDERR
vsSTDOUT
) isn't sufficiently different enough to make it not a dupe. Most of the answers could be trivially transformed by writing toSTDERR
or file stream 1 instead ofSTDOUT
. – Mego – 2016-01-24T22:16:27.520I'd tend to agree with @Mego. The distinction of writing to STDERR versus STDOUT is pretty trivial in the majority of languages. – Alex A. – 2016-01-24T22:16:33.123
1I agree with @Mego and therefore closed this as duplicate, not unclear (despite what the banner says). The question is not unclear by any stretch of the imagination. – mınxomaτ – 2016-01-24T22:32:16.193
*four* reopen votes!? – cat – 2016-01-24T22:36:52.937
1@cat 5, actually. :P – Addison Crump – 2016-01-24T22:38:43.013
9Note: The comma in
Hello, World!
is not necessary. Please do yourself a favor and save a byte. – ETHproductions – 2016-01-24T22:59:30.1201Relevant RosettaCode. – cat – 2016-01-24T23:21:50.010
@Mego This question's point is about outputting to
STDERR
. I've seen that Hello World question, and this isn't a copy. – Elliot A. – 2016-01-25T01:20:31.450@ElliotA. Just outputting something to
STDERR
is too trivial. OutputtingHello, World!
(or any simple variant thereof) is a dupe. Combining those two pieces doesn't make for a good challenge. – Mego – 2016-01-25T01:48:15.410