On Thu Jul 07 07:35:36 2016, [email protected] wrote: > for example > vytas@v:~/$ perl6 <<< 'my $a = 1/0;' > To exit type 'exit' or '^D' > Attempt to divide 1 by zero using div > in any interactive at src/Perl6/Compiler.nqp line 82 > vytas@v:~/$ > > vytas@v:~/$ perl6 -e 'my $a = 1/0;' > vytas@v:~/$ > > vytas@v:~/$ perl6 -v > This is Rakudo version 2016.06-163-gd1ebac0 built on MoarVM version > 2016.06-9-g8fc21d5 > implementing Perl 6.c.
$ perl6 -e 'my $a = 1/0; say $a' Attempt to divide 1 by zero using div in block <unit> at -e line 1 Actually thrown at: in block <unit> at -e line 1 They do behave the same, the issue is that you created a Failure object, and then in the REPL, immediately tried to print it out. In the command line version, you created it but never used the value. In my example above, you can see when you try to print out the value, you trigger the same error as in the REPL. Rejecting ticket. -- Will "Coke" Coleda
