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: Sat, 31 Dec 2005 10:31:18 -0700
- Message-id: <20051231173118.GA32725@winnie.fuhr.org> <text/plain>
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
Home |
Main Index |
Thread Index