On 09/28/2017 10:19 PM, ToddAndMargo wrote:
On 09/28/2017 10:12 PM, Brandon Allbery wrote:
On Fri, Sep 29, 2017 at 1:09 AM, ToddAndMargo <toddandma...@zoho.com <mailto:toddandma...@zoho.com>> wrote:

    Figured it out.  The chat line told me that there is an error in the
    docs.  The proper way was "e" not "f"

This is not the same thing. .e will return True if it exists but is a directory, for example. I mentioned this in my first response.
In fact, the different behavior seems inconsistent and might be a bug.

Yup.  That is what the docs say.  It is a mistake.

In my example, eraseme.txt is a file.  There is no directory
of that name anywhere on my computer.  Spell it right
and you get a True back.  Misspell it and you get a False back.

And e give me True back for directories too.  hmmmm.

$ perl6 -e 'my $x="p6-OS-Clipboard".IO.e;say $x'

$ perl6 -e 'my $x="p6-OS-Clipboard".IO.f.Bool;say $x'

$ perl6 -e 'my $x="eraseme.txt".IO.f.Bool;say $x'

Computers are like air conditioners.
They malfunction when you open windows

Reply via email to