You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/Language/system.pod6
+12-5Lines changed: 12 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -55,9 +55,9 @@ my UInt $num-iters = prompt "How many iterations to run: ";
55
55
There are two routines to run external programs: L<C<run>|/routine/run> and
56
56
L<C<shell>|/routine/shell>. Both exist in the L<C<IO>|/type/IO> role and are
57
57
thus included in all classes that mix that role in, like L<IO::Path>. Both
58
-
return a L<Proc|/type/Proc> object, but the main difference is that C<run> will try to
59
-
avoid the system shell, if possible, while C<shell> will run the command through
60
-
the default system shell.
58
+
return a L<Proc|/type/Proc> object, but the main difference is that C<run> will
59
+
try to avoid the system shell, if possible, while C<shell> will run the command
60
+
through the default system shell.
61
61
62
62
The key class for running all external programs is L<Proc::Async>, which runs
63
63
processes asynchronously and allows
@@ -76,8 +76,15 @@ using that interface; some other functions like C<kill> can also be L<accessed
76
76
that way, via declaration using the NativeCall
77
77
interface|/language/5to6-perlfunc#kill>.
78
78
79
-
Fortunately, you do not have to do that for all native functions. As part of her Butterfly project porting Perl 5 functions to Perl 6 as part of the ecosystem, L<Elizabeth Mattijsen|https://github.com/lizmat> is porting many system functions that were part of that language to modules such as <L<C<P5getprotobyname>|https://github.com/lizmat/P5getprotobyname>, which includes functions such as C<endprotoent>, C<getprotoent>, C<getprotobyname>, C<getprotobynumber> and
80
-
C<setprotoent>. L<Search and install C<P5> modules|https://modules.perl6.org/search/?q=p5> if you want to use those functions already in p6y form.
79
+
Fortunately, you do not have to do that for all native functions. As part of her
80
+
Butterfly project porting Perl 5 functions to Perl 6 as part of the ecosystem,
81
+
L<Elizabeth Mattijsen|https://github.com/lizmat> is porting many system
82
+
functions that were part of that language to modules such as
83
+
L<C<P5getprotobyname>|https://github.com/lizmat/P5getprotobyname>, which
84
+
includes functions such as C<endprotoent>, C<getprotoent>, C<getprotobyname>,
85
+
C<getprotobynumber> and C<setprotoent>. L<Search and install C<P5>
86
+
modules|https://modules.perl6.org/search/?q=p5> if you want to use those
0 commit comments