Re: BUG #2136: plperl doesn't work, plperlu - yes

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Robert Osowiecki <robson(at)cavern(dot)pl>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2136: plperl doesn't work, plperlu - yes
Date: 2005-12-31 17:31:18
Message-ID: 20051231173118.GA32725@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Fri, Dec 30, 2005 at 09:43:52AM +0000, Robert Osowiecki wrote:
> Creation of any plperl function gives error message:
>
> ERROR: creation of Perl function failed: Can't locate object method "new"
> via package "Safe" at line 1.
> (in cleanup) Can't call method "reval" on an undefined value at line
> 1.

Can you use the Safe module in standalone Perl scripts? What happens
if you run the following?

#!/usr/bin/perl
use strict;
require Safe;
print "Safe::VERSION = $Safe::VERSION\n";
my $foo = new Safe('foo');
print "test = ", $foo->reval("test"), "\n";

--
Michael Fuhr

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2005-12-31 20:14:54 Re: BUG #2137: CREATE DATABASE permission is not inherited.
Previous Message BFRACI 2005-12-31 00:53:32 Re: BUG #2102: Backend reports wrong number of affected rows for a