On Fri, Sep 29, 2017 at 12:41 AM, ToddAndMargo <toddandma...@zoho.com>
wrote:

> Does perl 6 have an equivalent to bash's "-f" to
> see if a file exists?  Or is that a system call?
>

IO::Path's .f method. (Or .e to not require it to be a file, etc. as usual.)

    pyanfar Z$ 6 '".profile".IO.f.say'
    True

-- 
brandon s allbery kf8nh                               sine nomine associates
allber...@gmail.com                                  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

Reply via email to