LTA error: assignment to $_
alised to Array says value is immutable instead of suggesting list assignment
#2310
Labels
LTA
Less Than Awesome; typically an error message that could be better
Feels like a case that should Do The Right Thing.This works tho:
If fixing this, check how much performance is affected for assigning stuff to $_ in such cases (regardless whether it contains an Array or not). If there's a noticeable impact, we should defer the change until a later time IMO, as assigning to aliased$_
is a very common case, while doing the same when it's an array ain't.The text was updated successfully, but these errors were encountered: