method bind-stdin

Documentation for method bind-stdin assembled from the following types:

class Proc::Async

From Proc::Async

(Proc::Async) method bind-stdin

multi method bind-stdin(IO::Handle:D $handle)
multi method bind-stdin(Proc::Async::Pipe:D $pipe)

Sets a handle (which must be opened) or a Pipe as a source of STDIN. The STDIN of the target process must be writable or X::Proc::Async::BindOrUse will be thrown.

my $p ="cat":in);
my $h = "/etc/profile";

This is equivalent to

cat < /etc/profile

and will print the content of /etc/profile to standard output.