# New Ticket Created by Sam S. # Please include the string: [perl #125416] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=125416 >
An item assignment inside a comma-separated list works as expected as long as the preceding element is a literal: ➜ dd 1, my $x = 2, 3 1 $x = 2 3 However when the preceding element is a sub or method call, the assignment for some reason gobbles the whole remaining list (as if it were a list assignment): ➜ dd Int(1), my $x = 2, 3 1 $x = $(2, 3) ➜ dd 1.Int, my $x = 2, 3 1 $x = $(2, 3) I would assume this is a bug. Unfortunately, http://design.perl6.org/S03.html#List_prefix_precedence does not go into details on how exactly the LHS of an assignment is supposed to determine item vs list precedence though.