diff --git a/doc/src/sgml/plperl.sgml b/doc/src/sgml/plperl.sgml index 3fc14c275a..7f23aaad79 100644 --- a/doc/src/sgml/plperl.sgml +++ b/doc/src/sgml/plperl.sgml @@ -1,5 +1,5 @@ @@ -101,7 +101,7 @@ SELECT name, totalcomp(basesalary, bonus) from employee CREATE FUNCTION empcomp(employee) returns int4 AS 'my $emp = shift; - return $emp->{'basesalary'} + $emp->{'bonus'};' + return $emp->{''basesalary''} + $emp->{''bonus''};' LANGUAGE 'plperl'; A tuple is passed as a reference to hash. The keys are the names of