summaryrefslogtreecommitdiff
path: root/perl9.buetow.org/content/New-Features.sub/Multi-Langual.xml
blob: e502efbe088c412d438bdfe089a9085518fed199 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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>