Skip to content

Commit b59e3f3

Browse files
committed
Reword / typos
1 parent 2ca1886 commit b59e3f3

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

doc/Language/io.pod

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ of the C<Str> type.
9393
=head1 Checking files and directories
9494
9595
Use the C<e> method on an C<IO::Handle> object to test whether the file or
96-
directory exist.
96+
directory exists.
9797
9898
if "nonexistent_file".IO.e {
9999
say "file exists";
@@ -135,9 +135,8 @@ the file test method C<f>:
135135
136136
=head1 Getting a directory listing
137137
138-
To list the files and directories in the current directory, one merely needs
139-
to use the C<dir> function. This returns a list of L<IO::Path> objects one
140-
can then write to, read from etc.
138+
To list the contents of the current directory, use the C<dir> function. It
139+
returns a list of L<IO::Path> objects.
141140
142141
say dir; # "/path/to/testfile".IO "/path/to/lib".IO
143142
@@ -154,13 +153,11 @@ directory name as its argument:
154153
mkdir "newdir";
155154
156155
The function returns the name of the created directory on success and C<Nil>
157-
on failure. Thus the standard Perl idiom
156+
on failure. Thus the standard Perl idiom works as expected:
158157
159158
mkdir "newdir" or die "$!";
160159
161-
works as expected.
162-
163-
Similarly, one can remove I<empty> directories with C<rmdir>:
160+
Use C<rmdir> to emove I<empty> directories:
164161
165162
rmdir "newdir" or die "$!";
166163

0 commit comments

Comments
 (0)