Calendar - for "REAL" programmers: Difference between revisions

Content added Content deleted
(Added Perl.)
m (→‎{{header|Perl}}: "without" → "with no")
Line 159: Line 159:


=={{header|Perl}}==
=={{header|Perl}}==
Since we can't use <code>eval</code> or <code>print</code> (or any other keywords) at the top level, we need to abuse backticks in order to print anything, as in [http://www.perlmonks.org/?node_id=43797 the infamous JAPH without letters or numbers]. Consequently, the calendar is printed to standard error instead of standard output.
Since we can't use <code>eval</code> or <code>print</code> (or any other keywords) at the top level, we need to abuse backticks in order to print anything, as in [http://www.perlmonks.org/?node_id=43797 the infamous JAPH with no letters or numbers]. Consequently, the calendar is printed to standard error instead of standard output.


<lang perl>$PROGRAM = '\'
<lang perl>$PROGRAM = '\'