Hi,

If I can assume:

        @x = 3..5;
        say pop @x;    # prints 5
        
        @x = 3..5;
        push @x, 6;
        say pop @x;    # prints 6
        say pop @x;    # prints 5

What should I expect for the following?

        @x = 3..Inf;
        say pop @x;    # heat death?
        
        @x = 3..Inf;
        push @x, 6;    # heat death or
                       # an array with infinity + 1 elements?
        say pop @x;    # prints 6?
        say pop @x;    # heat death?

Dan

Reply via email to