I found this in perloppush @{$groups{ +shift( @items ) }}, shift( @items );
Unary "+" has no effect whatsoever, even on strings. It is useful syntactically for separating a function name from a parenthesized expression that would otherwise be interpreted as the complete list of function arguments.
Is that what you were doing there? Making sure Perl knew that the return value from shift( @items ) was not part of an argument list?
In reply to Re^2: key and values help
by dsb
in thread key and values help
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |