Skip to content

Commit

Permalink
Update the PL/Perl6 page and give and example with explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
leto committed Jul 30, 2010
1 parent f7b08d1 commit f06bf9b
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions html/plperl6.html
Expand Up @@ -27,13 +27,28 @@

<div class="content">

<h1>Rakudo Perl 6</h1>
Jonathan (dukeleto) Leto got <a href="http://rakudo.org/">Rakudo</a> <a
<h1>Rakudo Perl 6</h1>
<p>
<a href="http://leto.net">Jonathan "Duke" Leto</a> got <a href="http://rakudo.org/">Rakudo</a> <a
href="http://perl6.org/">Perl 6</a> working thanks in part to to
efforts by Moritz (moritz++) Lenz, of <a
href="http://perlgeek.de/">http://perlgeek.de/</a> fame, who
helped make input arguments work correctly.
<br/>
</p>
<p>
Here is an example stored procedure written in PL/Perl 6, from our test suite:

<pre>
CREATE OR REPLACE FUNCTION test_fibonacci_plperl6(integer) RETURNS int LANGUAGE plperl6 AS $$
my $limit = @_[0];
[+] (1, 1, *+* ... $limit)
$$;
</pre>
</p>
<p>
The first line is SQL, and everything between the $$ symbols is Perl 6! This stored procedure takes a single integer N and returns the sum of the first N Fibonacci numbers.
</p>

</div>
</div>
</div>
Expand Down

0 comments on commit f06bf9b

Please sign in to comment.