Why the change in die handling between Perl 5 and 6? Suppressing line numbers with newline was very handy. Alternatively, adding some sort of directive would be more straight-forward (at least for Perl 5 users moving to Perl 6).
On Mon, Sep 3, 2018 at 11:32 AM, Elizabeth Mattijsen <l...@dijkmat.nl> wrote: > note “message”; exit > > > On 3 Sep 2018, at 18:03, Parrot Raiser <1parr...@gmail.com> wrote: > > > > perl6 -v > > This is Rakudo Star version 2018.06 built on MoarVM version 2018.06 > > implementing Perl 6.c. > > > > In Perl 5: > > die "Message"; outputs Message, followed by the program line number. > > die "Message\n" outputs Message > > without further ado. > > > > Perl 6 "die" produces line numbers regardless of the line ending. > > > > $ perl6 -e 'die "message";' > > message > > in block <unit> at -e line 1 > > > > $perl6 -e 'die "message\n";' > > message > > > > in block <unit> at -e line 1 > > > > What's the Perl 6 equivalent for line number suppression? > > https://docs.perl6.org/routine/die is silent on the topic. >