http://www.perlmonks.org?node_id=435451


in reply to Re: Perl oddities
in thread Perl oddities

And if you're trying to map your inputs into hashrefs with a comma, you can't. :-/

Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

Replies are listed 'Best First'.
Re^3: Perl oddities
by Joost (Canon) on Mar 01, 2005 at 14:42 UTC
      No, you don't need the +:
      print map {"$_",}, qw/foo bar/
      works as well, although you need more characters. I don't think there is any case in Perl where you need unary minus for disambiguation where you can't disambiguate in another way using 2 or 3 other keystrokes.

      Unary plus is just a convenience, not a requirement.

        Quoting is not an identity function in Perl.

        "There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.