Skip to content

Commit 973355a

Browse files
committed
Replace Proc::Status::exit with exitcode
The `exit` method has been deprectated since 2015.03 and will be removed in favour of `exitcode` in 2015.09.
1 parent 53c6385 commit 973355a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Type/Proc/Status.pod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ L<run()|/type/IO#sub run> and L<shell()|/type/IO#sub shell> return a
1010
C<Proc::Status> object:
1111
1212
my $status = run 'false'; # most UNIXes have a /bin/false
13-
say $status.exit; # 1
13+
say $status.exitcode; # 1
1414
say $status.signal; # 0 (which means: not killed by a signal)
1515
1616
=head1 Methods
1717
18-
=head2 method exit
18+
=head2 method exitcode
1919
20-
method exit(Proc::Status:D:) returns Int:D
20+
method exitcode(Proc::Status:D:) returns Int:D
2121
2222
Returns the numeric exit code from the program.
2323

0 commit comments

Comments
 (0)