summaryrefslogtreecommitdiff
path: root/perl9.buetow.org/content/New-Features.sub/Random-Operator.xml
blob: 8e67cebbd16fe3c837d0c3803b02b10f7263221c (plain)
1
2
3
4
5
6
7
8
9
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>