A very idiomatic way of breaking ambiguity is to use the no-op unary +.
my @foo = @{+shift}; print +(split)[2]; $hash{+lc}++; # etcetera
In reply to Re: Ambiguity of @{ shift }
by Juerd
in thread Ambiguity of @{ shift }
by PerlingTheUK
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |