# New Ticket Created by  Samantha McVey 
# Please include the string:  [perl #129923]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=129923 >


This worked on an older Rakudo:
open 'foo' orelse say "Something happened $!"

STDERR:
«Use of Nil in string context
  in block  at ./test.p6 line 1»
STDOUT:
«something happened »

This does work though:
open 'foo' orelse say "Something happened $_"
STDOUT:
«something happened (HANDLED) Failed to open file /home/samantha/proj/perl6/
foo: no such file or directory
  in any  at /usr/share/perl6/runtime/CORE.setting.moarvm line 1
  in block <unit> at ./test.p6 line 1»

Attachment: signature.asc
Description: PGP signature

Reply via email to