in reply to Need help with Apache2::Subprocess undefined value error when using spawn_proc_prog

Consider the two lines:

my $r = shift; ... $out = $r->spawn_proc_prog($command);

and think about what $r actually can contain, and what it needs to contain to be dereferenced (see perlref). Keep in mind that shift is acting on @ARGV here.


DWIM is Perl's answer to Gödel
  • Comment on Re: Need help with Apache2::Subprocess undefined value error when using spawn_proc_prog
  • Download Code

Replies are listed 'Best First'.
Re^2: Need help with Apache2::Subprocess undefined value error when using spawn_proc_prog
by aels (Initiate) on Aug 16, 2007 at 04:47 UTC

    so $r is undefined (empty) in the above case.
    and need to be the current handler?
      Is this code intended to be run under ModPerl::Registry?

        Yes, it will run under ModPerl::Registry