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

need second pair of eyes

Thread Next
From:
ToddAndMargo
Date:
June 3, 2018 21:27
Subject:
need second pair of eyes
Message ID:
cf10ee36-cf0b-fb5e-ed16-34637dd1ab32@zoho.com
Hi All,

What am I doing wrong here?


      $ p6 'lib \'./\'; use RunNoShell; ( my $a, my $b ) = 
RunNoShell::RunNoShell("ls *.pm6"); say $a;'

      bash: syntax error near unexpected token `='

Huh ???


This is RunNoShell.pm6

     sub RunNoShell ( $RunString ) is export {
        ...
        return ( $ReturnStr, $RtnCode );
     }

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