summaryrefslogtreecommitdiff
path: root/perl9.buetow.org/content/New-Features.sub/Multi-Langual.xml
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-02-03 10:44:49 +0100
committerPaul Buetow <paul@buetow.org>2013-02-03 10:44:49 +0100
commit025e15b2ba7f54f87cf409fd7c3dd77746c72858 (patch)
tree007c5af4f921aa85665f4db56f6f4309668a5dab /perl9.buetow.org/content/New-Features.sub/Multi-Langual.xml
parentfc0acd318710aa0bb566329a36d886b1455c21ec (diff)
add hosts
Diffstat (limited to 'perl9.buetow.org/content/New-Features.sub/Multi-Langual.xml')
-rw-r--r--perl9.buetow.org/content/New-Features.sub/Multi-Langual.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/perl9.buetow.org/content/New-Features.sub/Multi-Langual.xml b/perl9.buetow.org/content/New-Features.sub/Multi-Langual.xml
new file mode 100644
index 0000000..e502efb
--- /dev/null
+++ b/perl9.buetow.org/content/New-Features.sub/Multi-Langual.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="ISO-8859-1" standalone="yes" ?>
+<content>
+ <pagetitle>Perl 9 is multi langual</pagetitle>
+ <text>In Perl 9, perl can now do everything! You can combine all syntaxes of your programming languages within the same program! This is actually awesome! If your friend keeps telling you that his programming language is better than Perl, then he does not know (yet) about Perl 9! :)</text>
+ <code>
+#!/usr/bin/perl9
+
+use VisualBasic.NET qw(Comments Declaration::Variable)
+use TurboPascal qw(Operator::Assign)
+use Java qw(Class::Math Loop::Foreach Class::System::out);
+
+Rem Some cool stuff:
+Dim double @Foo As Array;
+@Foo[$_] := Math.sqrt($_) for 0 .. 10;
+foreach (double $d : @Foo)
+$d-&gt;System.out.println();
+ </code>
+</content>