in reply to About the + in front of a hashref that disambiguates from a code block.
When was it first introduced?
I wonder if unary-plus existed before this use came about.
If so, I wonder if it ever numified.
How did people go around the issue before this was introduced?
The ambiguity problem usually come from omitting parens around function calls. The solution is just to add the parens.
map +(3+$_)*4, ... === map( (3+$_)*4, ... )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: About the + in front of a hashref that disambiguates from a code block. (unary -)
by tye (Sage) on Oct 24, 2009 at 18:58 UTC | |
by JavaFan (Canon) on Oct 24, 2009 at 22:39 UTC | |
by ikegami (Patriarch) on Oct 24, 2009 at 23:03 UTC | |
|
Re^2: About the + in front of a hashref that disambiguates from a code block.
by JavaFan (Canon) on Oct 24, 2009 at 16:39 UTC |