develooper Front page | perl.perl6.users | Postings from May 2018

I need indir help

Thread Next
From:
ToddAndMargo
Date:
May 11, 2018 00:04
Subject:
I need indir help
Message ID:
7ad1bfa5-352c-8966-eb04-5c61a63036f1@zoho.com
Hi All,

I am over on
https://docs.perl6.org/routine/indir

I can make heads of tails out of what is going on.

I want to check is a file exists.


$ perl6 -e 'say indir("./EchoTest");'
===SORRY!=== Error while compiling -e
Calling indir(Str) will never work with any of these multi signatures:
     ($path, &what, :$test!)
     ($path, &what, :$d = Bool::True, :$r, :$w, :$x)
at -e:1


Many thanks,
-T

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About