Re: BUG #2136: plperl doesn't work, plperlu - yes - Mailing list pgsql-bugs

From Michael Fuhr
Subject Re: BUG #2136: plperl doesn't work, plperlu - yes
Date
Msg-id 20051231173118.GA32725@winnie.fuhr.org
Whole thread Raw
In response to BUG #2136: plperl doesn't work, plperlu - yes  ("Robert Osowiecki" <robson@cavern.pl>)
List 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

pgsql-bugs by date:

Previous
From: "Chander Ganesan"
Date:
Subject: BUG #2137: CREATE DATABASE permission is not inherited.
Next
From: Tom Lane
Date:
Subject: Re: BUG #2137: CREATE DATABASE permission is not inherited.