-----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. 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 -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE4eL662U9iK2ST2MqN/W6H45XOE8FAlsUbgcACgkQN/W6H45X OE8tcwf8DObCw9+ZDF2cNGfy8p4fc69HFS/FYjcfEGISFYZwi+s+xluQ7N1OTmKx 8Eiw0h5JFXh3CQTB2gFchjRzMjxhuXR1dqhPTUqak89s9919oiNcxQUvF5iJ61o+ SIB8xXDvqfrV6ogTX8fetqWPWL3MN2o0j6UewelCzh/TyG0etZ8b/QhJCZe3pYi7 FTHTMrgFjhb2bZhrP7qFchc/GzvhNedN9Gz5ppti8tdxDNSPLDQiHyTxCULi1Zqo /afENk+qyGn6u3x03WFCdMMN7m0G5Xxcn8spvApbBwjWJYL8o183oxEFJkHyic8J BwNwa7oMN1/ZovFHdhFsSh5s+8KcCQ== =u8yi -----END PGP SIGNATURE-----