Re: mod_perl + GnuPG

2003-03-13 Thread Stas Bekman
Gareth Palmer wrote:
I'm getting a strange error while trying to using the GnuPG module
while running under mod_perl (everything works fine when executing from
a shell)
The message is:
  Can't locate object method OPEN via package Apache::RequestRec 
(perhaps you forgot to load Apache::RequestRec?) at 
/usr/lib/perl5/site_perl/5.6.3/GnuPG.pm line 252
   mod_perl 1.99_08

OPEN was added after 1.99_08. Please build the cvs version of mod_perl 2.0:
http://perl.apache.org/download/source.html#2_0_Development_Source_Distribution
__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


mod_perl + GnuPG

2003-03-11 Thread Gareth Palmer
I'm getting a strange error while trying to using the GnuPG module
while running under mod_perl (everything works fine when executing from
a shell)

The message is:
  Can't locate object method OPEN via package Apache::RequestRec 
(perhaps you forgot to load Apache::RequestRec?) at 
/usr/lib/perl5/site_perl/5.6.3/GnuPG.pm line 252

Lines 250-253 in GnuPG.pm look like:
  # This is where the output goes
  if ( ref $self-{output}  defined fileno $self-{output} ) {
  open ( STDOUT,  . fileno $self-{output} )
or die can't redirect stdout to proper output fd: $!\n;

I tried prefixing the open call with CORE:: but this didn't appear
to do  anything (the error message was the same).

Versions:
  perl 5.6.3
  apache   2.0.44
  mod_perl 1.99_08
  GnuPG.pm 0.09


Thanks.