On Sun, 3 Jun 2018 15:22:17
- -0700 ToddAndMargo <toddandma...@zoho.com> wrote:

On 06/03/2018 03:06 PM, Brad Gilbert wrote:
It's -I. not -I

perl6 -I. -MRunNoShell '( my $a, my $b ) = RunNoShell("ls \*.pm6");
say $a;' Could not open ( my $a, my $b ) = RunNoShell("ls \*.pm6");
say $a;. Failed to stat file: no such file or directory

On 06/03/2018 03:39 PM, Patrick Spek via perl6-users wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

You're missing `-e` here, it should be

     perl6 -I. -MRunNoShell -e '( my $a, my $b ) = RunNoShell("ls \*.pm6");

For further clarification, the `.` after `-I` indicates the directory
that is being added to the paths Perl 6 checks for libraries that are
being used. Hence the `.` is needed to indicate the current directory.
I'm not sure if `-I` arguments get appended or prepended to the list of
paths.

The `-e` is for the expression that is to be run. Otherwise, it'll try
to open the argument as if it were a filename, which is why you get the
"no such file or directory" error.


Indeed!  Thank you!  I am putting this in my Keepers one liner file!

perl6 -I. -MRunNoShell -e '( my $a, my $b ) = RunNoShell("ls"); say $a;'

And it does not like the -e until after the I and the M

Reply via email to