On 09/18/2017 10:23 AM, Andy Bach wrote:
Er, I was referring more to the P5 behaviour of warn() - w/o a newline,
its output, to stderr, included more info:
$ perl -e 'warn("hi mom")' > /dev/null
hi mom at -e line 1.
$ perl -e 'warn("hi mom\n")' > /dev/null
hi mom
"note" appears to append a new line and p6 warn appears to always add
the extra info. Looking at
https://docs.perl6.org/routine/warn
I see warn is doing even more that.
Thanks.
Very interesting! It throws an "exception".
Hmmmmm. I wonder how that might be used ...