Skip to content

Commit d765ad6

Browse files
committed
Eliminates slurp-rest because deprecation refs #2492
1 parent ab37ab1 commit d765ad6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/Language/5to6-nutshell.pod6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,13 +1446,13 @@ my $captured = qx(echo $arg);
14461446
In Perl 6, you will probably want to run commands without using the shell:
14471447
14481448
my $arg = 'Hello';
1449-
my $captured = run('echo', $arg, :out).out.slurp-rest;
1450-
my $captured = run(«echo "$arg"», :out).out.slurp-rest;
1449+
my $captured = run('echo', $arg, :out).out.slurp;
1450+
my $captured = run(«echo "$arg"», :out).out.slurp;
14511451
14521452
You can also use the shell if you really want to:
14531453
14541454
my $arg = 'Hello';
1455-
my $captured = shell("echo $arg", :out).out.slurp-rest;
1455+
my $captured = shell("echo $arg", :out).out.slurp;
14561456
my $captured = qqx{echo $arg};
14571457
14581458
But beware that in this case there is B<no protection at all>! C<run> does
@@ -1835,4 +1835,4 @@ live on GitHub. An online converter may become available at some point.
18351835
18361836
=end pod
18371837

1838-
# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6
1838+
# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6

0 commit comments

Comments
 (0)