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


    ➜  say (|() xx *)[0];
    Cannot shift from an empty Array
      in block <unit> at <unknown file> line 1

Obviously, this golfed-down example is not useful as written. But this
happened as an edge case of some real code I was writing.

By contrast, when the `xx` repetition count is finite is works correctly:

    ➜  say (|() xx 5)[0];
    Nil

And when the thing that is being slipped in is non-empty, it also work
correctly:

    ➜  say (|1 xx *)[0];
    1

Reply via email to