I'm not sure about qqx because I too am a fledgling perl6 programmer, but the run routine returns a Proc object that has an exitcode method.
++++++++++++++++++++++++ my $proc = run 'ls', 'dir!'; $proc.exitcode.say; ++++++++++++++++++++++++ Right in the documentation the following is stated as well: "See also run <https://docs.perl6.org/routine/run> and Proc::Async <https://docs.perl6.org/type/Proc::Async> for better ways to execute external commands. " On Sat, Jul 28, 2018 at 4:37 AM, ToddAndMargo <toddandma...@zoho.com> wrote: > Hi All, > > How do I get the bash return code ("$?") from > the following? > > $ReturnStr = qqx ( curl $TimeOutStr -L $Url -o $FileName ).lines; > > > Many thanks, > -T > -- __________________ :(){ :|:& };: