summaryrefslogtreecommitdiff
path: root/perl9.buetow.org/content/New-Features.sub/Random-Operator.xml
diff options
context:
space:
mode:
Diffstat (limited to 'perl9.buetow.org/content/New-Features.sub/Random-Operator.xml')
-rw-r--r--perl9.buetow.org/content/New-Features.sub/Random-Operator.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/perl9.buetow.org/content/New-Features.sub/Random-Operator.xml b/perl9.buetow.org/content/New-Features.sub/Random-Operator.xml
new file mode 100644
index 0000000..8e67ceb
--- /dev/null
+++ b/perl9.buetow.org/content/New-Features.sub/Random-Operator.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="ISO-8859-1" standalone="yes" ?>
+<content>
+ <pagetitle>Perl 9 has a random operator</pagetitle>
+ <text>You probably know that Perl supports a lot of different operators. If you don't know which operator to use at the moment then just use the random operator (}}}}@.@{{{{).</text>
+ <code>
+# Does something randomly with its two operands $foo and $bar:
+
+$foo (}}}}@.@{{{{) $bar;
+ </code>
+</content>