in reply to Re: why can't I shift a split?
in thread why can't I shift a split?
That's an assignment, not an array. The closest valid code is
shift @{ @_ = split /,/; \@_ }
There's no need to use named array, though.
shift @{[ split /,/ ]}
But I'd use a list slice, as shown in my reply to the OP.
|
|---|