Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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?

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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group