That's what I assumed, but thanks for the sanity check! Odd looking legacy code gives me deep paranoia when changing it!
The current theory in the office is that someone "fat-fingered" it... since the "+" and "[" are so close on the keyboard... otherwise... NFI
Or maybe you could pass in a default to use if $self->bar was false... so it was originally @{ $self->bar || +shift } and then the code evolved and someone replaced the "shift" with "[]" and left the "+" around, JIC
In reply to Re^2: Array Plus Operator
by SleepyJay
in thread Array Plus Operator
by SleepyJay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |