Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Need help with Apache2::Subprocess undefined value error when using spawn_proc_prog

by GrandFather (Saint)
on Aug 16, 2007 at 02:23 UTC ( [id://632902]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://632902]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-24 08:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found