Browse files

Update the PL/Perl6 page and give and example with explanation

  • Loading branch information...
1 parent f7b08d1 commit f06bf9b3707519fd1008ce600ae471d450fa711b @leto committed Jul 30, 2010
Showing with 18 additions and 3 deletions.
  1. +18 −3 html/plperl6.html
@@ -27,13 +27,28 @@
<div class="content">
- <h1>Rakudo Perl 6</h1>
- Jonathan (dukeleto) Leto got <a href="">Rakudo</a> <a
+<h1>Rakudo Perl 6</h1>
+ <a href="">Jonathan "Duke" Leto</a> got <a href="">Rakudo</a> <a
href="">Perl 6</a> working thanks in part to to
efforts by Moritz (moritz++) Lenz, of <a
href=""></a> fame, who
helped make input arguments work correctly.
+Here is an example stored procedure written in PL/Perl 6, from our test suite:
+CREATE OR REPLACE FUNCTION test_fibonacci_plperl6(integer) RETURNS int LANGUAGE plperl6 AS $$
+my $limit = @_[0];
+[+] (1, 1, *+* ... $limit)
+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.

0 comments on commit f06bf9b

Please sign in to comment.