PL/Perl - Mailing list pgsql-general

From ON.KG
Subject PL/Perl
Date
Msg-id 8122979390.20050107211736@on.kg
Whole thread Raw
In response to J2SE 1.5 Cache Rowset(JSR 114 )  ("Brian Maguire" <bmaguire@vantage.com>)
Responses Re: PL/Perl
Re: PL/Perl
PL/Perl
List pgsql-general
Hi!

Could I use "use", "require" functions in plperl?

for example,

CREATE OR REPLACE FUNCTION perl_func (text)
RETURNS real
AS '
  use HTTP::Request;
  use HTTP::Headers;
  ....
  return $value;
'
LANGUAGE 'plperl';


with me it doesn't work and returns error message
"Query failed: ERROR: creation of function failed: 'require' trapped by
operation mask at (eval 2) line 2. in ..."

Thanx


pgsql-general by date:

Previous
From: Alexis Vasquez
Date:
Subject: how to migrate a complete win/interbase6 DB
Next
From: "John Doggett"
Date:
Subject: need help Connect failure in an applet