PL/Perl

From: "ON(dot)KG" <skyer(at)on(dot)kg>
To: pgsql-general(at)postgresql(dot)org
Subject: PL/Perl
Date: 2005-01-07 18:17:36
Message-ID: 8122979390.20050107211736@on.kg
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

  • Re: PL/Perl at 2005-01-07 16:36:30 from Pavel Stehule
  • Re: PL/Perl at 2005-01-07 18:21:00 from Joshua D. Drake
  • PL/Perl at 2005-01-11 11:59:55 from ON.KG

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2005-01-07 18:21:00 Re: PL/Perl
Previous Message Scott Ribe 2005-01-07 18:17:32 Re: does "select count(*) from mytable" always do a seq