And my actuall system call is this::
Ah that is what you failed to mention :)
__BEGIN__
use Acme::Spork;
my $req_id = spork( sub { system("perl compute_price.pl -eml \"$uemail\" -type $ct
-unit $nu"); } )
or die qq {Could not fork for spork: $!};
__END__
Any idea?
Yep, as per the docs, (took about 30 seconds to find its the first thing
under the spork funtion...) you are not passing the variabels to it
proeprly.
(an oi, why is that written so incredibly hard to read ???)
spork(
sub {
my ($foo, $bar, $baz, $wop) = @_:
system qq(echo "$$: FOO: $foo BAR: $bar BAZ: $baz WOP: $wop" >>
spork.test");
},
$foo, $bar, $baz, $wop
) or ....
So you see it has nothgin to do with using system it has to so with
calling a funtion as its documented :)
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>