We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94e045f commit 2ca1886Copy full SHA for 2ca1886
doc/Language/io.pod
@@ -92,9 +92,8 @@ of the C<Str> type.
92
93
=head1 Checking files and directories
94
95
-We don't want an error to be thrown if we try to open a file that doesn't
96
-exist. So, how do we know that the file even exists before reading it?
97
-This is what the C<e> method on an C<IO::Handle> object is for.
+Use the C<e> method on an C<IO::Handle> object to test whether the file or
+directory exist.
98
99
if "nonexistent_file".IO.e {
100
say "file exists";
0 commit comments