summaryrefslogtreecommitdiff
path: root/perl9.buetow.org/content/New-Features.sub/Multi-Langual.xml
diff options
context:
space:
mode:
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>