sergot / IO-Capture-Simple

IO can be captured.
3 stars 8 forks source link

Can't catch output from external programs or library bindings. #2

Open dagurval opened 11 years ago

dagurval commented 11 years ago

The module is unable to catch output from programs executed, or output from language bindings (things that use module NativeCall).

Example:

  perl6 -e "use IO::Capture::Simple; my \$out = capture { shell \"echo cant catch me\"; };"
tadzik commented 8 years ago

This can be done with Proc::Async, panda currently has this functionality: https://github.com/tadzik/panda/blob/6073de4c0bc349d467347e7d2647a6cdb33b74c7/lib/Panda/Common.pm#L65

Only the $has-proc-async branch is worth copying, now that Proc::Async is... 2 years old or so :)