aboutsummaryrefslogtreecommitdiff
path: root/Capture.xs
diff options
context:
space:
mode:
Diffstat (limited to 'Capture.xs')
-rw-r--r--Capture.xs23
1 files changed, 10 insertions, 13 deletions
diff --git a/Capture.xs b/Capture.xs
index 067180c..19da27b 100644
--- a/Capture.xs
+++ b/Capture.xs
@@ -3,18 +3,6 @@
MODULE = POSIX::Run::Capture PACKAGE = POSIX::Run::Capture PREFIX = capture_
PROTOTYPES: ENABLE
-=head2 new POSIX::Run::Capture
-
- new POSIX::Run::Capture([ $command, @args ]);
-
- new POSIX::Run::Capture(argv => [ $command, @args ],
- stdout => sub { ... },
- stderr => sub { ... },
- timeout => N)
-
-
-=cut
-
POSIX::Run::Capture
capture_new(package, ...)
char *package;
@@ -66,7 +54,8 @@ capture_new(package, ...)
croak("program argument is not a scalar");
else
prog = val;
- } else if (strcmp(kw, "input") == 0) {
+ } else if (strcmp(kw, "input") == 0
+ || strcmp(kw, "stdin") == 0) {
input = val;
} else
croak("unknown keyword argument %s", kw);
@@ -80,6 +69,14 @@ void
capture_DESTROY(cp)
POSIX::Run::Capture cp;
+=head2 $obj->set_argv_ref($aref)
+
+Sets command argument vector. The B<$aref> parameter is an array reference.
+
+This is an auxiliary method. Use B<set_argv> instead.
+
+=cut
+
void
capture_set_argv_ref(cp, argv)
POSIX::Run::Capture cp;

Return to:

Send suggestions and report system problems to the System administrator.