# New Ticket Created by Sam S.
# Please include the string: [perl #132337]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=132337 >
Golfed example:
sub foo ($str) {
{ say $str }() orelse Nil
}
foo "aa"; # aa
foo "bb"; # aa
The second call should print "bb", not "aa".
Replacing the `say` with `return`, throws "Attempt to return outside of
any Routine" on the second call (but not the first), indicating that
something is going wrong with cloning the interpolated closure.